File monitoring-plugins-netapp.spec of Package monitoring-plugins-netapp
#
# spec file for package monitoring-plugins-netapp
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: monitoring-plugins-netapp
Summary: Check NetApp filer
License: BSD-4-Clause
Group: System/Monitoring
Version: 1.4.17
Release: 100
Url: http://nagiosplugins.org/
Source0: check_netapp.pl
%if 0%{?suse_version} > 1010
# nagios can execute the script with embedded perl
Recommends: perl
%else
Requires: perl
%endif
Requires: perl(Net::SNMP)
Requires: perl(Getopt::Long)
BuildArch: noarch
BuildRequires: nagios-rpm-macros
Provides: nagios-plugins-netapp = %{version}-%{release}
Obsoletes: nagios-plugins-netapp < %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Checks for overtemperature, fans, psu, and nfs operations/second on Network
Appliance Filers.
Returns:
* OK if temp, fans, psu OK and Ops/Sec below warning and critical Thresholds
(default is warning=3500, critical=5000)
** Note: See the specifications for your Filer model for the thresholds !
* Returns Warning if NFS Ops/Sec is above warning threshold (default 3500, or
specified by -o command line option)
* Returns Critical if NFS Ops/Sec is above critical threshold ( -m option, or
default 5000), or if overtem, psufault, or fanfault detected.
%prep
%build
%install
install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_netapp
cd %buildroot/%{nagios_plugindir} >/dev/null
ln -s check_netapp check_netapp.pl
%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_netapp*
%changelog