1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-22 02:13:44 +01:00

Removed obsoletes and thresholds

This commit is contained in:
Tomas Edwardsson 2013-09-13 10:48:02 +00:00
parent 46024baa26
commit 53ec813478
2 changed files with 6 additions and 3 deletions

View File

@ -15,8 +15,6 @@ BuildArch: noarch
Requires: nrpe Requires: nrpe
Requires: pynag Requires: pynag
Requires: PackageKit Requires: PackageKit
Obsoletes: nagios-okplugin-check_yum
Obsoletes: nagios-okplugin-check_updates
%description %description
@ -33,6 +31,8 @@ rm -rf %{buildroot}
install -D -p -m 0755 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin} install -D -p -m 0755 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin}
mkdir -p %{buildroot}%{_sysconfdir}/nrpe.d mkdir -p %{buildroot}%{_sysconfdir}/nrpe.d
sed "s^/usr/lib64^%{_libdir}^g" nrpe.d/%{plugin}.cfg > %{buildroot}%{_sysconfdir}/nrpe.d/%{plugin}.cfg sed "s^/usr/lib64^%{_libdir}^g" nrpe.d/%{plugin}.cfg > %{buildroot}%{_sysconfdir}/nrpe.d/%{plugin}.cfg
# Temporary fix for selinux
chcon system_u:object_r:nagios_unconfined_plugin_exec_t:s0 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin}
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}

View File

@ -1,2 +1,5 @@
# Critical on security updates, warning if 40 or more total updates # Critical on security updates, warning if 40 or more total updates
command[check_updates]=/usr/lib64/nagios/plugins/check_package_updates --th "metric=security,critical=1..inf" --th "metric=total,warning=40..inf" --legacy command[check_package_updates]=/usr/lib64/nagios/plugins/check_package_updates --legacy
# Critical on security updates
command[check_package_updates_security]=/usr/lib64/nagios/plugins/check_package_updates --th "metric=security,critical=1..inf" --legacy