2014-07-30 16:55:47 +02:00
|
|
|
#
|
|
|
|
# spec file for package monitoring-plugins-bonding
|
|
|
|
#
|
2017-04-21 15:01:01 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-07-30 16:55:47 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2017-04-21 15:01:01 +02:00
|
|
|
|
2014-07-30 16:55:47 +02:00
|
|
|
Name: monitoring-plugins-bonding
|
|
|
|
Version: 0.002
|
2017-04-21 15:01:01 +02:00
|
|
|
Release: 0
|
2014-07-30 16:55:47 +02:00
|
|
|
Summary: Nagios Network Bonding Check
|
2017-04-21 15:01:01 +02:00
|
|
|
License: GPL-2.0+ or Artistic-1.0
|
2014-07-30 16:55:47 +02:00
|
|
|
Group: System/Monitoring
|
2017-04-21 15:01:01 +02:00
|
|
|
Url: http://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/Network-Bonding
|
2014-07-30 16:55:47 +02:00
|
|
|
Source0: check_bonding.pl
|
|
|
|
Source1: usr.lib.nagios.plugins.check_bonding
|
2014-07-31 01:14:59 +02:00
|
|
|
BuildRequires: nagios-rpm-macros
|
2014-07-30 16:55:47 +02:00
|
|
|
Provides: nagios-plugins-bonding = %{version}-%{release}
|
|
|
|
Obsoletes: nagios-plugins-bonding < %{version}-%{release}
|
2017-04-21 15:01:01 +02:00
|
|
|
%if 0%{?suse_version}
|
2014-07-30 16:55:47 +02:00
|
|
|
Recommends: apparmor-profiles
|
|
|
|
# nagios can execute the script with embedded perl
|
|
|
|
Recommends: perl
|
2017-04-21 15:01:01 +02:00
|
|
|
%endif
|
2014-07-30 16:55:47 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
This script attempts to read the proc interface to the Linux kernel bonding
|
|
|
|
driver, and determine if the bonded interfaces are optimal. It will warn if any
|
|
|
|
of the enslaved devices are not 'up' (exit 1), and if any bonded interfaces are
|
|
|
|
not active at all (exit 2). This script is suitable for feeding to NRPE for
|
|
|
|
Nagios (or similar) to check.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -D -m755 %{SOURCE0} %{buildroot}%{nagios_plugindir}/check_bonding
|
|
|
|
install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_bonding
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# avoid build dependecy of nagios - own the dirs
|
|
|
|
%dir %{nagios_libdir}
|
|
|
|
%dir %{nagios_plugindir}
|
|
|
|
%{nagios_plugindir}/check_bonding
|
|
|
|
%dir %{_sysconfdir}/apparmor.d
|
|
|
|
%config(noreplace) %{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_bonding
|
|
|
|
|
|
|
|
%changelog
|