File monitoring-plugins-aacraid.spec of Package monitoring-plugins-aacraid

#
# spec file for package monitoring-plugins-aacraid
#
# Copyright (c) 2012 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-aacraid
Summary:        Check the health of an Adaptec RAID controller using Adaptec Storage Manager
Version:        0.3
Release:        100
Url:            https://www.monitoringexchange.org/inventory/Check-Plugins/Hardware/Devices/RAID-Controller/Adaptec-RAID-Check-by-Anchor-Systems
License:        GPL-2.0+
Group:          System/Monitoring
Source0:        check-aacraid.py
Patch0:         monitoring-plugins-aacraid-fix_deprecated_and_enhancements.patch
Requires:       StorMan
BuildArch:      noarch
BuildRequires:  nagios-rpm-macros
Provides:       nagios-plugins-aacraid = %{version}-%{release}
Obsoletes:      nagios-plugins-aacraid < %{version}-%{release}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Check the health of an Adaptec raid controller using /usr/StorMan/arcconf

Checks the following:
* Logical device status
* Controller status
* Failed & Degraded drives

If battery present:
* Charging status
* Est of charge time left
* Charge left %

%prep
%setup -q -T -c %name
install -m644 %{SOURCE0} .
%patch0 -p0

%build

%install
install -Dm755 check-aacraid.py %buildroot/%{nagios_plugindir}/check_aacraid

%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_aacraid

%changelog
openSUSE Build Service is sponsored by