diff --git a/monitoring-plugins.changes b/monitoring-plugins.changes index ceb8d2e..ee0fdd6 100644 --- a/monitoring-plugins.changes +++ b/monitoring-plugins.changes @@ -5,6 +5,7 @@ Wed Oct 3 14:11:51 UTC 2018 - lars@linux-schulserver.de + nrpe-check_load => check_load + nrpe-check_mailq => check_mailq + nrpe-check_ntp_time => check_ntp_time + + nrpe-check_swap => check_swap - use %%license macro on newer versions ------------------------------------------------------------------- diff --git a/monitoring-plugins.spec b/monitoring-plugins.spec index 4c003c3..8f0266a 100644 --- a/monitoring-plugins.spec +++ b/monitoring-plugins.spec @@ -52,6 +52,7 @@ Source35: usr.lib.nagios.plugins.check_procs.sle15 Source50: nrpe-check_mailq Source51: nrpe-check_load Source52: nrpe-check_ntp_time +Source53: nrpe-check_swap # PATCH-FIX-UPSTREAM Quote the options comming in from users (path names might contain whitespaces) Patch1: %{name}-2.1.1-check_logfile.patch # PATCH-FIX-OPENSUSE do not use chown in Makefile (not possible when building as normal user) @@ -1189,9 +1190,10 @@ install -m 644 %{SOURCE34} %{buildroot}%{_sysconfdir}/apparmor.d/ # install nrpe snipplets mkdir -p %{buildroot}%{nrpe_sysconfdir} -install -m 0644 %{SOURCE50} %{buildroot}%{nrpe_sysconfdir}/check_mailq.cfg -install -m 0644 %{SOURCE51} %{buildroot}%{nrpe_sysconfdir}/check_load.cfg -install -m 0644 %{SOURCE52} %{buildroot}%{nrpe_sysconfdir}/check_ntp_time.cfg +install -m 644 %{SOURCE50} %{buildroot}%{nrpe_sysconfdir}/check_mailq.cfg +install -m 644 %{SOURCE51} %{buildroot}%{nrpe_sysconfdir}/check_load.cfg +install -m 644 %{SOURCE52} %{buildroot}%{nrpe_sysconfdir}/check_ntp_time.cfg +install -m 644 %{SOURCE53} %{buildroot}%{nrpe_sysconfdir}/check_swap.cfg # inform the users about the deprecated monitoring-plugins-extras package cat >> README.SUSE-deprecated << EOF @@ -1568,8 +1570,10 @@ fi %files swap %defattr(0755,root,root) %dir %{nagios_plugindir} +%dir %{nrpe_sysconfdir} %{nagios_plugindir}/check_swap %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_swap +%config(noreplace) %{nrpe_sysconfdir}/check_swap.cfg %files tcp %defattr(0755,root,root) diff --git a/nrpe-check_swap b/nrpe-check_swap new file mode 100644 index 0000000..7815827 --- /dev/null +++ b/nrpe-check_swap @@ -0,0 +1 @@ +command[check_swap]=/usr/lib/nagios/plugins/check_swap -w 10 -c 5