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

Name:           monitoring-plugins-arcconf
Summary:        Check Adaptec AAC-RAID
Version:        0.3
Release:        100
License:        unknown
Group:          System/Monitoring
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

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. 

%setup -q -T -c %{name}-%{version}
install -m755 %{SOURCE0} .
%patch0 -p0


install -D -m755 %buildroot/%{nagios_plugindir}/check_arcconf

rm -rf %buildroot

# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}