1
0

- 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
This commit is contained in:
Lars Vogdt 2018-10-03 14:03:51 +00:00 committed by Git OBS Bridge
parent 086233d4b5
commit 108b86ba66
3 changed files with 12 additions and 1 deletions

View File

@ -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 Thu Jul 26 01:12:10 CEST 2018 - ro@suse.de

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 Url: http://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/Network-Bonding
Source0: check_bonding.pl Source0: check_bonding.pl
Source1: usr.lib.nagios.plugins.check_bonding Source1: usr.lib.nagios.plugins.check_bonding
Source2: nrpe-check_bonding
BuildRequires: nagios-rpm-macros BuildRequires: nagios-rpm-macros
Provides: nagios-plugins-bonding = %{version}-%{release} Provides: nagios-plugins-bonding = %{version}-%{release}
Obsoletes: nagios-plugins-bonding < %{version}-%{release} Obsoletes: nagios-plugins-bonding < %{version}-%{release}
@ -50,6 +51,7 @@ Nagios (or similar) to check.
%install %install
install -D -m755 %{SOURCE0} %{buildroot}%{nagios_plugindir}/check_bonding 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 %{SOURCE1} %{buildroot}%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_bonding
install -D -m644 %{SOURCE2} %{buildroot}%{nrpe_sysconfdir}/check_bonding.cfg
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -59,8 +61,10 @@ rm -rf %{buildroot}
# avoid build dependecy of nagios - own the dirs # avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir} %dir %{nagios_libdir}
%dir %{nagios_plugindir} %dir %{nagios_plugindir}
%dir %{nrpe_sysconfdir}
%{nagios_plugindir}/check_bonding %{nagios_plugindir}/check_bonding
%dir %{_sysconfdir}/apparmor.d %dir %{_sysconfdir}/apparmor.d
%config(noreplace) %{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_bonding %config(noreplace) %{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_bonding
%config(noreplace) %{nrpe_sysconfdir}/check_bonding.cfg
%changelog %changelog

1
nrpe-check_bonding Normal file
View File

@ -0,0 +1 @@
command[check_bonding]=/usr/lib/nagios/plugins/check_bonding