From 0badbf86197923ad35d754b4caa9d7a37e87dd4a Mon Sep 17 00:00:00 2001 From: Pall Sigurdsson Date: Tue, 17 Jul 2012 20:16:50 +0000 Subject: [PATCH] rpm spec file added. version number bumped --- .../check_ibm_bladecenter.py | 2 +- ...nagios-okplugin-check_ibm_bladecenter.spec | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 check_ibm_bladecenter/nagios-okplugin-check_ibm_bladecenter.spec diff --git a/check_ibm_bladecenter/check_ibm_bladecenter.py b/check_ibm_bladecenter/check_ibm_bladecenter.py index b143bd9..c48c558 100644 --- a/check_ibm_bladecenter/check_ibm_bladecenter.py +++ b/check_ibm_bladecenter/check_ibm_bladecenter.py @@ -22,7 +22,7 @@ # No real need to change anything below here -version="1.0" +version="1.1.0" ok=0 warning=1 critical=2 diff --git a/check_ibm_bladecenter/nagios-okplugin-check_ibm_bladecenter.spec b/check_ibm_bladecenter/nagios-okplugin-check_ibm_bladecenter.spec new file mode 100644 index 0000000..f929846 --- /dev/null +++ b/check_ibm_bladecenter/nagios-okplugin-check_ibm_bladecenter.spec @@ -0,0 +1,45 @@ +%define debug_package %{nil} + +Summary: A Nagios plugin to check IBM Bladecenters +Name: nagios-okplugin-check_ibm_bladecenter +Version: 1.1.0 +Release: 1%{?dist} +License: GPLv2+ +Group: Applications/System +URL: http://opensource.ok.is/trac/wiki/Nagios-OKPlugin-check_ibm_bladecenter +Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_ibm_bladecenter/releases/%{name}-%{version}.tar.gz +Requires: nagios-plugins +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Packager: Pall Sigurdsson +BuildArch: noarch +Requires: nrpe + + +%description +Checks the health status of an IBM Bladecenter via SNMP + +%prep +%setup -q + +%build + + +%install +rm -rf %{buildroot} +install -D -p -m 0755 check_ibm_bladecenter.py %{buildroot}%{_libdir}/nagios/plugins/check_ibm_bladecenter.py +#mkdir -p %{buildroot}%{_sysconfdir}/nrpe.d +#sed "s^/usr/lib64^%{_libdir}^g" nrpe.d/check_bond.cfg > %{buildroot}%{_sysconfdir}/nrpe.d/check_bond.cfg + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc README +%{_libdir}/nagios/plugins/* +#%config(noreplace) %{_sysconfdir}/nrpe.d/check_bond.cfg + +%changelog + +* Tue Jul 17 2012 Pall Sigurdsson 1.0.0-1 +- Initial packaging