]> git.pld-linux.org Git - packages/nagios-nrpe.git/blob - nagios-nrpe.spec
- Suggests: nagios-plugin-check_load (sync with example sample configuration)
[packages/nagios-nrpe.git] / nagios-nrpe.spec
1 Summary:        Nagios remote plugin execution service/plugin
2 Summary(pl.UTF-8):      Demon i wtyczka zdalnego wywoływania wtyczek Nagios
3 Name:           nagios-nrpe
4 Version:        2.12
5 Release:        1
6 License:        GPL v2
7 Group:          Networking
8 Source0:        http://dl.sourceforge.net/nagios/nrpe-%{version}.tar.gz
9 # Source0-md5:  b2d75e2962f1e3151ef58794d60c9e97
10 Source1:        nrpe.init
11 Patch0:         %{name}-config.patch
12 URL:            http://www.nagios.org/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  openssl-tools
16 BuildRequires:  rpmbuild(macros) >= 1.268
17 Requires(post,preun):   /sbin/chkconfig
18 Requires:       nagios-common
19 Requires:       rc-scripts
20 Suggests:       nagios-plugins
21 Suggests:       nagios-plugin-check_load
22 Provides:       nagios-core
23 Obsoletes:      netsaint-nrpe
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _sysconfdir     /etc/nagios
27 %define         _datadir        %{_prefix}/share/%{name}
28 %define         _plugindir      %{_libdir}/nagios/plugins
29 %define         _libexecdir     %{_plugindir}
30 %define         _localstatedir  %{_var}/log/nagios
31 %define         nsport          5666
32
33 %description
34 NRPE is an addon for Nagios that allows you to execute "local" plugins
35 (like check_disk, check_procs, etc.) on remote hosts. The check_nrpe
36 plugin is called from Nagios and makes plugin execution requests to
37 the NRPE daemon running on the remote host (either as a standalone
38 daemon or as a service under inetd). Supports passing command
39 arguments to server, as well as native SSL/TLS encryption (anonymous
40 DH mode).
41
42 %description -l pl.UTF-8
43 NRPE to dodatek do Nagiosa pozwalający na wywoływanie "lokalnych"
44 wtyczek (takich jak check_disk, check_procs itp.) na zdalnych
45 maszynach. Wtyczka check_nrpe jest wywoływana z poziomu Nagiosa i
46 wysyła żądania uruchomienia wtyczek do demona NRPE działającego na
47 zdalnej maszynie (jako samodzielny demon lub usługa inetd). Obsługuje
48 przekazywanie argumentów poleceń do serwera, a także natywne
49 szyfrowanie SSL/TLS (w trybie anonimowego DH).
50
51 %package plugin
52 Summary:        check_nrpe plugin for Nagios
53 Summary(pl.UTF-8):      Wtyczka check_nrpe dla Nagiosa
54 Group:          Networking
55 Requires:       nagios-core
56
57 %description plugin
58 check_nrpe plugin for Nagios. This plugin allows running plugins on
59 remote machines using nrpe service.
60
61 %description plugin -l pl.UTF-8
62 Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie wtyczek
63 na innych komputerach za pomocą demona nrpe.
64
65 %prep
66 %setup -q -n nrpe-%{version}
67 %patch0 -p1
68
69 %build
70 %{__aclocal}
71 %{__autoconf}
72
73 %configure \
74         --with-init-dir=/etc/rc.d/init.d \
75         --with-nrpe-port=%{nsport} \
76         --with-nrpe-user=nagios \
77         --with-nrpe-grp=nagios \
78         --enable-ssl \
79         --enable-command-args
80
81 %{__make} all
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
86         $RPM_BUILD_ROOT{%{_localstatedir},/var/run/nrpe}
87
88 install sample-config/nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
89 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
90 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
91 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post
97 /sbin/chkconfig --add nrpe
98 %service nrpe restart
99
100 %preun
101 if [ "$1" = "0" ] ; then
102         %service nrpe stop
103         /sbin/chkconfig --del nrpe
104 fi
105
106 %triggerpostun -- %{name} < 2.6-1.1
107 %{__sed} -i -e 's,/var/run/nrpe.pid,/var/run/nrpe/nrpe.pid,' %{_sysconfdir}/nrpe.cfg
108
109 %files
110 %defattr(644,root,root,755)
111 %doc Changelog LEGAL README* SECURITY
112 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
113 %attr(755,root,root) %{_sbindir}/nrpe
114 %attr(754,root,root) /etc/rc.d/init.d/nrpe
115 %dir %attr(775,root,nagios) /var/run/nrpe
116
117 %files plugin
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_plugindir}/*
This page took 0.038591 seconds and 4 git commands to generate.