1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-22 10:23:46 +01:00

Spec files created for check_dataprotector

This commit is contained in:
Tómas Edwardsson 2010-09-15 03:50:12 +00:00
parent 53db8f5962
commit bd36b1a052
3 changed files with 48 additions and 7 deletions

View File

@ -0,0 +1,48 @@
%define debug_package %{nil}
Summary: Nagios Plugins to monitor HP Dataprotector
Name: nagios-okplugin-check_dataprotector
Version: AUTOVERSION
Release: 1%{?dist}
License: GPLv2+
Group: Applications/System
URL: http://opensource.is/trac/wiki/check_dataprotector
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_dataprotector/releases/nagios-okplugin-check_dataprotector-%{version}.tar.gz
Requires: OB2-DA,OB2-CC
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Packager: Pall Sigurdsson <palli@opensource.is>
%description
Nagios Plugins to monitor HP Dataprotector
%prep
%setup -q
perl -pi -e "s|/usr/lib/|%{_libdir}/|g" nrpe.d/check_dataprotector.cfg
%build
%install
rm -rf %{buildroot}
install -D -p -m 0755 check_dp_backups %{buildroot}%{_libdir}/nagios/plugins/check_dp_backups
install -D -p -m 0755 check_dp_idb %{buildroot}%{_libdir}/nagios/plugins/check_dp_idb
install -D -p -m 0755 check_dp_mountrequest %{buildroot}%{_libdir}/nagios/plugins/check_dp_mountrequest
install -D -p -m 0755 check_dp_pool %{buildroot}%{_libdir}/nagios/plugins/check_dp_pool
install -D -p -m 0755 check_dp_services %{buildroot}%{_libdir}/nagios/plugins/check_dp_services
install -D -p -m 0755 check_dp_tablespace %{buildroot}%{_libdir}/nagios/plugins/check_dp_tablespace
install -D -p -m 0755 nrpe.d/check_dataprotector.cfg %{buildroot}/etc/nrpe.d/check_dataprotector.cfg
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README LICENSE
%{_libdir}/nagios/plugins/*
/etc/nrpe.d/check_dataprotector.cfg
%changelog
* Mon Sep 15 2010 Pall Sigurdsson <palli@opensource.is> 0.1-1
- Initial packaging

View File

@ -1,7 +0,0 @@
command[check_dp_pool]=/usr/lib/nagios/plugins/contrib/check_dp_pool "free"
command[check_dp_tablespace]=/usr/lib/nagios/plugins/contrib/check_dp_tablespace
command[check_dp_services]=/usr/lib/nagios/plugins/contrib/check_dp_services
command[check_dp_mountrequest]=/usr/lib/nagios/plugins/contrib/check_dp_mountrequest
command[check_dp_idb]=/usr/lib/nagios/plugins/contrib/check_dp_idb