mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-24 19:33:46 +01:00
73 lines
2.1 KiB
RPMSpec
73 lines
2.1 KiB
RPMSpec
%define debug_package %{nil}
|
|
%define plugin check_msa_hardware
|
|
%define packager Gardar Thorsteinsson <gardar@ok.is>
|
|
|
|
Summary: A Nagios plugin to check status of an MSA (HP P2000) disk array
|
|
Name: nagios-okplugin-%{plugin}
|
|
Version: 1.0.5
|
|
Release: 2%{?dist}
|
|
License: GPLv3+
|
|
Group: Applications/System
|
|
URL: https://github.com/opinkerfi/nagios-plugins/tree/master/%{plugin}
|
|
Source0: https://github.com/opinkerfi/nagios-plugins/tree/master/%{plugin}/releases/%{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Packager: %{packager}
|
|
BuildArch: noarch
|
|
Requires: pynag
|
|
|
|
|
|
%description
|
|
Checks status of a remote MSA disk array, also known as HP P2000
|
|
%prep
|
|
%setup -q
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude}|}^perl\\(utils\\)
|
|
|
|
%build
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
install -D -p -m 0755 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin}
|
|
mkdir -p %{buildroot}%{_sysconfdir}/nrpe.d
|
|
sed "s^/usr/lib64^%{_libdir}^g" nrpe.d/%{plugin}.cfg > %{buildroot}%{_sysconfdir}/nrpe.d/%{plugin}.cfg
|
|
|
|
# Temporary fix for selinux
|
|
chcon system_u:object_r:nagios_unconfined_plugin_exec_t:s0 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post
|
|
/sbin/service nrpe status &> /dev/null && /sbin/service nrpe reload || :
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.md
|
|
%{_libdir}/nagios/plugins/*
|
|
%config(noreplace) %{_sysconfdir}/nrpe.d/%{plugin}.cfg
|
|
|
|
%changelog
|
|
* Fri May 09 2018 Gardar Thorsteinsson <gardar@ok.is> 1.0.5-2
|
|
- Filter out perl-utils dep
|
|
|
|
* Thu Jan 30 2014 Pall Sigurdsson <palli@opensource.is> 1.0.5-1
|
|
-
|
|
|
|
* Thu Jan 30 2014 Pall Sigurdsson <palli@opensource.is> 1.0.4-1
|
|
- README.md added (you@example.com)
|
|
- nrpe.d added to check_msa (you@example.com)
|
|
- rename check_msa_hardware-pl (you@example.com)
|
|
|
|
* Thu Jan 30 2014 Pall Sigurdsson <palli@opensource.is> 1.0.3-1
|
|
- new package built with tito
|
|
|
|
* Thu Jan 30 2014 Pall Sigurdsson <palli@opensource.is> 1.0.2-1
|
|
- new package built with tito
|
|
|
|
* Thu Jan 30 2014 Unknown name 1.0.1-1
|
|
- new package built with tito
|
|
|
|
* Fri Jan 27 2014 Pall Sigurdsson 1.0.0-1
|
|
- Initial Packaging
|