/
nagios-okplugin-check_snmp.spec
49 lines (38 loc) · 1.82 KB
/
nagios-okplugin-check_snmp.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%define debug_package %{nil}
Summary: Various nagios plugins to check cpu,memory,interfaces via SNMP
Name: nagios-okplugin-check_snmp
Version: AUTOVERSION
Release: 1%{?dist}
License: GPLv2+
Group: Applications/System
URL: http://opensource.is/trac/wiki/check_snmp
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_snmp/releases/nagios-okplugin-check_snmp-%{version}.tar.gz
Requires: perl-Net-SNMP
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Packager: Pall Sigurdsson <palli@opensource.is>
%description
Various nagios plugins to check cpu,memory,interfaces via SNMP
%prep
%setup -q
#perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_hpacucli.cfg
%build
%install
rm -rf %{buildroot}
install -D -p -m 0755 check_snmp_connectivity %{buildroot}%{_libdir}/nagios/plugins/check_snmp_connectivity
install -D -p -m 0755 check_snmp_cpfw.pl %{buildroot}%{_libdir}/nagios/plugins/check_snmp_cpfw.pl
install -D -p -m 0755 check_snmp_env.pl %{buildroot}%{_libdir}/nagios/plugins/check_snmp_env.pl
install -D -p -m 0755 check_snmp_interfaces %{buildroot}%{_libdir}/nagios/plugins/check_snmp_interfaces
install -D -p -m 0755 check_snmp_int.pl %{buildroot}%{_libdir}/nagios/plugins/check_snmp_int.pl
install -D -p -m 0755 check_snmp_load.pl %{buildroot}%{_libdir}/nagios/plugins/check_snmp_load.pl
install -D -p -m 0755 check_snmp_mem.pl %{buildroot}%{_libdir}/nagios/plugins/check_snmp_mem.pl
install -D -p -m 0755 check_snmp_patchlevel.pl %{buildroot}%{_libdir}/nagios/plugins/check_snmp_patchlevel.pl
install -D -p -m 0755 check_snmp_temperature.pl %{buildroot}%{_libdir}/nagios/plugins/check_snmp_temperature.pl
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
#%doc README LICENSE
%{_libdir}/nagios/plugins/*
%changelog
* Mon Mar 1 2010 Pall Sigurdsson <palli@opensource.is> 0.1-1
- Initial packaging