mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-21 18:03:45 +01:00
Removed obsoletes and thresholds
This commit is contained in:
parent
46024baa26
commit
53ec813478
@ -15,8 +15,6 @@ BuildArch: noarch
|
||||
Requires: nrpe
|
||||
Requires: pynag
|
||||
Requires: PackageKit
|
||||
Obsoletes: nagios-okplugin-check_yum
|
||||
Obsoletes: nagios-okplugin-check_updates
|
||||
|
||||
|
||||
%description
|
||||
@ -33,6 +31,8 @@ rm -rf %{buildroot}
|
||||
install -D -p -m 0755 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/nrpe.d
|
||||
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
|
||||
rm -rf %{buildroot}
|
||||
|
@ -1,2 +1,5 @@
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user