File monitoring-plugins-arcconf.spec of Package monitoring-plugins-arcconf
#
# spec file for package monitoring-plugins-arcconf
#
# 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-arcconf
Summary: Check Adaptec AAC-RAID
Version: 0.3
Release: 100
Url: http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/Adaptec-RAID-Check-by-Anchor-Systems/details
License: unknown
Group: System/Monitoring
Source0: check-aacraid.py
Patch0: monitoring-plugins-arcconf-deprecation.patch
Requires: StorMan
Requires: python
Provides: nagios-plugins-arcconf = %{version}-%{release}
Obsoletes: nagios-plugins-arcconf < %{version}-%{release}
BuildArch: noarch
BuildRequires: nagios-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Plugin that checks an ADAPTEC Raid via /usr/StorMan/arcconf.
It looks at the error counts from the Disk Devices.
This plugin is based on /usr/StorMan/arcconf. It parses the output from
"/usr/StorMan/arcconf GETLOGS 1 DEVICE tabular" for the given error
count on numParityErrors, hwErrors and mediumErrors.
%prep
%setup -q -T -c %{name}-%{version}
install -m755 %{SOURCE0} .
%patch0 -p0
%build
%install
install -D -m755 check-aacraid.py %buildroot/%{nagios_plugindir}/check_arcconf
%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_arcconf
%changelog