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

#
# spec file for package monitoring-plugins-hardware_raid
#
# Copyright (c) 2021 SUSE LINUX 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-hardware_raid
Version:        2.1
Release:        0
Summary:        This plugin reports the current server RAID status
License:        GPL-2.0
Group:          System/Monitoring
Url:            https://github.com/solarkennedy/nagios-plugins
Source:         https://raw.githubusercontent.com/solarkennedy/nagios-plugins/master/check_hardware_raid
Requires:       perl >= 5.8
Suggests:       StorMan
Suggests:       tw_cli
BuildRequires:  perl >= 5.8
BuildRequires:  nagios-rpm-macros
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Check RAID status. Look for any known types of RAID configurations, and check
them all.

Supports:
- Adaptec AAC RAID via aaccli or afacli or arcconf
- AIX software RAID via lsvg
- HP/Compaq Smart Array via cciss_vol_status
- HP Smart Array Controllers and MSA Controllers via hpacucli (see hapacucli readme)
- HP Smart Array (MSA1500) via serial line
- Linux 3ware SATA RAID via tw_cli
- Linux DPT/I2O hardware RAID controllers via /proc/scsi/dpt_i2o
- Linux GDTH hardware RAID controllers via /proc/scsi/gdth
- Linux LSI MegaRaid hardware RAID via CmdTool2
- Linux LSI MegaRaid hardware RAID via megarc
- Linux LSI MegaRaid hardware RAID via /proc/megaraid
- Linux MegaIDE hardware RAID controllers via /proc/megaide
- Linux MPT hardware RAID via mpt-status
- Linux software RAID (md) via /proc/mdstat
- LSI Logic MegaRAID SAS series via MegaCli
- LSI MegaRaid via lsraid
- Serveraid IPS via ipssend
- Solaris software RAID via metastat

%prep
#
%build
#
%install
install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_hardware_raid

%files
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_hardware_raid


%changelog

openSUSE Build Service is sponsored by