From bd36b1a052a72739b06eb4178a3782fd0750e6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3mas=20Edwardsson?= Date: Wed, 15 Sep 2010 03:50:12 +0000 Subject: [PATCH] Spec files created for check_dataprotector --- .../nagios-okplugin-check_dataprotector.spec | 48 +++++++++++++++++++ ...aprotector.cfg => check_dataprotector.cfg} | 0 .../trunk/nrpe_local/dataprotector.cfg | 7 --- 3 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 check_dataprotector/trunk/nagios-okplugin-check_dataprotector.spec rename check_dataprotector/trunk/nrpe.d/{dataprotector.cfg => check_dataprotector.cfg} (100%) delete mode 100644 check_dataprotector/trunk/nrpe_local/dataprotector.cfg diff --git a/check_dataprotector/trunk/nagios-okplugin-check_dataprotector.spec b/check_dataprotector/trunk/nagios-okplugin-check_dataprotector.spec new file mode 100644 index 0000000..59b554f --- /dev/null +++ b/check_dataprotector/trunk/nagios-okplugin-check_dataprotector.spec @@ -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 + + + +%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 0.1-1 +- Initial packaging diff --git a/check_dataprotector/trunk/nrpe.d/dataprotector.cfg b/check_dataprotector/trunk/nrpe.d/check_dataprotector.cfg similarity index 100% rename from check_dataprotector/trunk/nrpe.d/dataprotector.cfg rename to check_dataprotector/trunk/nrpe.d/check_dataprotector.cfg diff --git a/check_dataprotector/trunk/nrpe_local/dataprotector.cfg b/check_dataprotector/trunk/nrpe_local/dataprotector.cfg deleted file mode 100644 index b227e9a..0000000 --- a/check_dataprotector/trunk/nrpe_local/dataprotector.cfg +++ /dev/null @@ -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