2012-03-12 18:31:14 +01:00
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
Summary: A set of Nagios plugins to check the health of a nagios host
|
|
|
|
Name: nagios-okplugin-check_nagios
|
2012-03-12 18:37:17 +01:00
|
|
|
Version: 0.0.8
|
2012-03-12 18:31:14 +01:00
|
|
|
Release: 1%{?dist}
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Applications/System
|
|
|
|
URL: http://opensource.is/trac/wiki/check_nagios
|
|
|
|
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_multipath/releases/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Packager: Pall Sigurdsson <palli@opensource.is>
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Checks health of Nagios service
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_nagios.cfg
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
install -D -p -m 0755 check_nagios_configuration %{buildroot}%{_libdir}/nagios/plugins/check_nagios_configuration
|
|
|
|
install -D -p -m 0755 check_nagios_ghostservices %{buildroot}%{_libdir}/nagios/plugins/check_nagios_ghostservices
|
|
|
|
install -D -p -m 0755 check_nagios_needs_reload %{buildroot}%{_libdir}/nagios/plugins/check_nagios_needs_reload
|
|
|
|
install -D -p -m 0755 check_nagios_plugin_existance %{buildroot}%{_libdir}/nagios/plugins/check_nagios_plugin_existance
|
|
|
|
install -D -p -m 0755 nrpe.d/check_nagios.cfg %{buildroot}/etc/nrpe.d/check_nagios.cfg
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-03-12 18:37:04 +01:00
|
|
|
%doc LICENSE
|
2012-03-12 18:31:14 +01:00
|
|
|
%{_libdir}/nagios/plugins/*
|
|
|
|
/etc/nrpe.d/check_nagios.cfg
|
|
|
|
|
|
|
|
%changelog
|
2012-03-12 18:37:17 +01:00
|
|
|
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.8-1
|
|
|
|
- LICENSE file added (palli@opensource.is)
|
|
|
|
|
2012-03-12 18:34:35 +01:00
|
|
|
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.7-1
|
|
|
|
-
|
|
|
|
|
2012-03-12 18:31:14 +01:00
|
|
|
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 0.0.6-1
|
|
|
|
- new package built with tito
|
|
|
|
|