File monitoring-plugins-infortrend.spec of Package monitoring-plugins-infortrend
#
# spec file for package monitoring-plugins-infortrend
#
# Copyright (c) 2012-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-infortrend
Summary: Check the status of an Infortrend EonStor RAID array
License: GPL-2.0+
Group: System/Monitoring
Version: 1.1
Release: 100
Url: http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/check_infortrend/details
Source0: check_infortrend
%if 0%{?suse_version} > 1010
# nagios can execute the script with embedded perl
Recommends: perl
%endif
Requires: perl(Net::Telnet)
Requires: perl(Getopt::Long)
Requires: perl(File::Spec::Unix)
BuildArch: noarch
BuildRequires: nagios-rpm-macros
Provides: nagios-plugins-infortrend = %{version}-%{release}
Obsoletes: nagios-plugins-infortrend < %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Nagios plugin which checks the status of an Infortrend EonStor RAID array. The
plugin uses telnet over ethernet to the Infortrend EonStor array.
Usage: check_infortrend [options]
where the valid options are
-h, --help Output this usage information.
-d, --debug Debug level.
-a, --array The name of the infortrend array.
-p, --password The password for the array.
-m, --model The model of array (known models are:
T6100F, PV610F and A24F-R2430.
-e, --expected The number of drives expected.
Examples:
check_infortrend -a 192.168.128.3 -p 3142 -m A24F-R2430 -e 24
check_infortrend -a my-array-03 -p 3142 -m T6100F -e 16
Typical output:
OK - array 192.168.128.3 (24 / 24 physical drives OK).
OK - array my-array-03 (16 / 16 physical drives OK).
Although written for specific models, it will probably work for others too.
%prep
%build
%install
install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_infortrend
%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_infortrend
%changelog