mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-05 10:03:45 +01:00
59 lines
1.5 KiB
RPMSpec
59 lines
1.5 KiB
RPMSpec
|
%define debug_package %{nil}
|
||
|
|
||
|
Summary: A Nagios plugin to check CPU on Linux servers
|
||
|
Name: nagios-okplugin-check_cpu
|
||
|
Version: 1.0
|
||
|
Release: 1%{?dist}
|
||
|
License: GPLv2+
|
||
|
Group: Applications/System
|
||
|
URL: https://github.com/opinkerfi/nagios-plugins/
|
||
|
Source0: https://github.com/opinkerfi/nagios-plugins/archive/%{name}-%{version}-%{release}.tar.gz
|
||
|
Requires: nagios-okplugin-common
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
Packager: Tomas Edwardsson <tommi@tommi.org>
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description
|
||
|
Check cpu states on line machines
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
|
||
|
|
||
|
%install
|
||
|
rm -rf %{buildroot}
|
||
|
mkdir -p %{buildroot}%{_sharedstatedir}/nagios-okplugin/%{name}
|
||
|
install -D -p -m 0755 okplugin_check_cpu %{buildroot}%{_libdir}/nagios/plugins/okplugin_check_cpu
|
||
|
install -D -p -m 0755 nrpe.d/okplugin_check_cpu.cfg %{buildroot}/etc/nrpe.d/okplugin_check_cpu.cfg
|
||
|
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
%post
|
||
|
/sbin/service nrpe reload
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%dir %attr(0770, nrpe, nrpe) %{_sharedstatedir}/nagios-okplugin/%{name}
|
||
|
%{_libdir}/nagios/plugins/*
|
||
|
%{_sysconfdir}/nrpe.d/*
|
||
|
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Thu Aug 23 2012 Pall Sigurdsson <palli@opensource.is> 1.0-1
|
||
|
- Version number bumped
|
||
|
- Updates buildarch to noarch (tommi@tommi.org)
|
||
|
|
||
|
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.3-1
|
||
|
- new package built with tito
|
||
|
|
||
|
* 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
|
||
|
- Initial packaging
|
||
|
|