]> git.pld-linux.org Git - SPECS.git/blob - nagios-snmp-plugins.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / nagios-snmp-plugins.spec
1 Summary:        Plugins for Nagios to monitor remote disk and processes via SNMP
2 Summary(pl.UTF-8):      Wtyczki dla Nagiosa do zdalnego monitorowania dysku i procesów po SNMP
3 Name:           nagios-snmp-plugins
4 Version:        1.3.1
5 Release:        3
6 License:        GPL v2
7 Group:          Networking
8 Source0:        https://github.com/glensc/nagios-snmp-plugins/releases/download/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  c47444d4224dfa225169213b2f4acc1c
10 Source1:        %{name}.cfg
11 URL:            http://github.com/glensc/nagios-snmp-plugins
12 BuildRequires:  net-snmp-devel >= 5.2.1.2
13 Requires:       nagios-core
14 Requires:       net-snmp-libs
15 Obsoletes:      netsaint-snmp-plugins
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _sysconfdir     /etc/nagios/plugins
19 %define         plugindir       %{_libdir}/nagios/plugins
20
21 %description
22 These plugins allow you to monitor on a remote machine via SNMP:
23 - disk space
24 - running processes
25 - system load
26 - swap usage
27
28 %description -l pl.UTF-8
29 Te wtyczki pozwalają na zdalne monitorowanie zajętości dysku i
30 działajacych procesów po SNMP.
31
32 %prep
33 %setup -q
34
35 %build
36 %configure \
37         --bindir=%{plugindir}
38 %{__make}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
43 %{__sed} -e 's,@plugindir@,%{plugindir},' %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.cfg
44 %{__make} install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc AUTHORS NEWS README
53 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg
54 %attr(755,root,root) %{plugindir}/check_snmp_disk
55 %attr(755,root,root) %{plugindir}/check_snmp_load
56 %attr(755,root,root) %{plugindir}/check_snmp_proc
57 %attr(755,root,root) %{plugindir}/check_snmp_swap
This page took 0.225254 seconds and 3 git commands to generate.