SPECS: nagios-plugin-check_snmp_load.spec (NEW) - new
glen
glen at pld-linux.org
Tue Feb 14 14:16:29 CET 2006
Author: glen Date: Tue Feb 14 13:16:29 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
nagios-plugin-check_snmp_load.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/nagios-plugin-check_snmp_load.spec
diff -u /dev/null SPECS/nagios-plugin-check_snmp_load.spec:1.1
--- /dev/null Tue Feb 14 14:16:29 2006
+++ SPECS/nagios-plugin-check_snmp_load.spec Tue Feb 14 14:16:23 2006
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+%include /usr/lib/rpm/macros.perl
+Summary: Nagios plugin to check system load via SNMP
+Name: nagios-plugin-check_snmp_load
+Version: 1.2
+Release: 0.3
+License: GPL
+Group: Networking
+Source0: http://patrick.proy.free.fr/nagios/check_snmp_load.pl
+# Source0-md5: c28aeb0029afc7e839ade6e85f47a25b
+Source1: check_snmp_load.cfg
+Patch0: %{name}-paths.patch
+URL: http://patrick.proy.free.fr/nagios/snmp_load.html
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: sed >= 4.0
+Requires: nagios-core
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _plugindir %{_libdir}/nagios/plugins
+%define _sysconfdir /etc/nagios/plugins
+
+%define _noautoreq 'perl(utils)'
+
+%description
+Checks by SNMP v1, v2c or v3 CPU or average load.
+
+%description -l pl
+
+%prep
+%setup -q -c -T
+install %{SOURCE0} .
+%patch0 -p1
+sed -i -e 's, at plugindir@,%{_plugindir},' check_snmp_load.pl
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_plugindir}}
+install check_snmp_load.pl $RPM_BUILD_ROOT%{_plugindir}/check_snmp_load
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%attr(755,root,root) %{_plugindir}/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/02/14 13:16:23 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list