mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
rebuilt with nrpe config installed by default
This commit is contained in:
parent
0167ffb8a6
commit
bc166d72be
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
Summary: A Nagios plugin to check CPU on Linux servers
|
Summary: A Nagios plugin to check CPU on Linux servers
|
||||||
Name: nagios-plugins-check_cpu
|
Name: nagios-plugins-check_cpu
|
||||||
Version: 0.1
|
Version: 0.2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://www.matejunkie.com/cpu-check-plugin-for-nagios/
|
URL: http://www.matejunkie.com/cpu-check-plugin-for-nagios/
|
||||||
Source0: http://www.monitoringexchange.org/attachment/download/Check-Plugins/Operating-Systems/check_cpu-sh/check_cpu.sh
|
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_cpu/releases/nagios-plugins-check_cpu-%{version}.tar.gz
|
||||||
Requires: nagios-plugins
|
Requires: nrpe
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Packager: Tomas Edwardsson <tommi@ok.is>
|
Packager: Tomas Edwardsson <tommi@ok.is>
|
||||||
|
|
||||||
@ -18,25 +18,31 @@ through /proc/stat accepting seperate threshholds and returning the data in a
|
|||||||
format suitable for performance data processing
|
format suitable for performance data processing
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
#%setup -q -n nagios-check_sip-%{version}
|
%setup -q
|
||||||
#cp %{SOURCE1} %
|
perl -pi -e "s|/usr/lib/|%{_libdir}/|g" nrpe.d/check_cpu.cfg
|
||||||
# lib64 fix
|
perl -pi -e "s|/usr/lib64/|%{_libdir}/|g" nrpe.d/check_cpu.cfg
|
||||||
#perl -pi -e "s|/usr/lib|%{_libdir}|g" check_sip
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
install -D -p -m 0755 %{SOURCE0} %{buildroot}%{_libdir}/nagios/plugins/check_cpu.sh
|
install -D -p -m 0755 check_cpu.sh %{buildroot}%{_libdir}/nagios/plugins/check_cpu.sh
|
||||||
|
install -D -p -m 0755 nrpe.d/check_cpu.cfg %{buildroot}/etc/nrpe.d/check_cpu.cfg
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
#%doc README COPYING CHANGES
|
#%doc README LICENSE
|
||||||
%{_libdir}/nagios/plugins/check_cpu.sh
|
%{_libdir}/nagios/plugins/*
|
||||||
|
/etc/nrpe.d/check_cpu.cfg
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 25 2010 Pall Sigurdsson <palli@opensource.is> 0.1-2
|
||||||
|
- Nrpe config now ships with plugin by default
|
||||||
* Mon Mar 1 2010 Tomas Edwardsson <tommi@ok.is> 0.1-1
|
* Mon Mar 1 2010 Tomas Edwardsson <tommi@ok.is> 0.1-1
|
||||||
- Initial packaging
|
- Initial packaging
|
||||||
|
|
||||||
|
1
check_cpu.sh/trunk/nrpe.d/check_cpu.cfg
Normal file
1
check_cpu.sh/trunk/nrpe.d/check_cpu.cfg
Normal file
@ -0,0 +1 @@
|
|||||||
|
command[check_cpu]=/usr/lib/nagios/plugins/check_cpu.sh
|
Loading…
Reference in New Issue
Block a user