From 108b86ba66f91da41ca3aaf8b21b6a01ef25b7c5a55d6785a648a335372b4eb6 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Wed, 3 Oct 2018 14:03:51 +0000 Subject: [PATCH] - add nrpe config snipplet: /etc/nrpe.d/check_bonding.cfg => nrpe-check_bonding OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-bonding?expand=0&rev=13 --- monitoring-plugins-bonding.changes | 6 ++++++ monitoring-plugins-bonding.spec | 6 +++++- nrpe-check_bonding | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 nrpe-check_bonding diff --git a/monitoring-plugins-bonding.changes b/monitoring-plugins-bonding.changes index a0a2ad0..975e042 100644 --- a/monitoring-plugins-bonding.changes +++ b/monitoring-plugins-bonding.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 3 14:00:38 UTC 2018 - lars@linux-schulserver.de + +- add nrpe config snipplet: /etc/nrpe.d/check_bonding.cfg + => nrpe-check_bonding + ------------------------------------------------------------------- Thu Jul 26 01:12:10 CEST 2018 - ro@suse.de diff --git a/monitoring-plugins-bonding.spec b/monitoring-plugins-bonding.spec index adbca11..b2230c8 100644 --- a/monitoring-plugins-bonding.spec +++ b/monitoring-plugins-bonding.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,6 +25,7 @@ Group: System/Monitoring Url: http://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/Network-Bonding Source0: check_bonding.pl Source1: usr.lib.nagios.plugins.check_bonding +Source2: nrpe-check_bonding BuildRequires: nagios-rpm-macros Provides: nagios-plugins-bonding = %{version}-%{release} Obsoletes: nagios-plugins-bonding < %{version}-%{release} @@ -50,6 +51,7 @@ Nagios (or similar) to check. %install install -D -m755 %{SOURCE0} %{buildroot}%{nagios_plugindir}/check_bonding install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_bonding +install -D -m644 %{SOURCE2} %{buildroot}%{nrpe_sysconfdir}/check_bonding.cfg %clean rm -rf %{buildroot} @@ -59,8 +61,10 @@ rm -rf %{buildroot} # avoid build dependecy of nagios - own the dirs %dir %{nagios_libdir} %dir %{nagios_plugindir} +%dir %{nrpe_sysconfdir} %{nagios_plugindir}/check_bonding %dir %{_sysconfdir}/apparmor.d %config(noreplace) %{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_bonding +%config(noreplace) %{nrpe_sysconfdir}/check_bonding.cfg %changelog diff --git a/nrpe-check_bonding b/nrpe-check_bonding new file mode 100644 index 0000000..f5565bd --- /dev/null +++ b/nrpe-check_bonding @@ -0,0 +1 @@ +command[check_bonding]=/usr/lib/nagios/plugins/check_bonding