1 Summary: Nagios remote plugin execution service/plugin
2 Summary(pl.UTF-8): Demon i wtyczka zdalnego wywoływania wtyczek Nagios
8 Source0: http://dl.sourceforge.net/nagios/nrpe-%{version}.tar.gz
9 # Source0-md5: b2d75e2962f1e3151ef58794d60c9e97
11 Patch0: %{name}-config.patch
12 URL: http://www.nagios.org/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: openssl-devel
16 BuildRequires: openssl-tools
17 BuildRequires: rpmbuild(macros) >= 1.268
18 Requires(post,preun): /sbin/chkconfig
19 Requires: nagios-common
22 Obsoletes: netsaint-nrpe
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _sysconfdir /etc/nagios
26 %define _datadir %{_prefix}/share/%{name}
27 %define _plugindir %{_libdir}/nagios/plugins
28 %define _libexecdir %{_plugindir}
29 %define _localstatedir %{_var}/log/nagios
33 NRPE is an addon for Nagios that allows you to execute "local" plugins
34 (like check_disk, check_procs, etc.) on remote hosts. The check_nrpe
35 plugin is called from Nagios and makes plugin execution requests to
36 the NRPE daemon running on the remote host (either as a standalone
37 daemon or as a service under inetd). Supports passing command
38 arguments to server, as well as native SSL/TLS encryption (anonymous
41 %description -l pl.UTF-8
42 NRPE to dodatek do Nagiosa pozwalający na wywoływanie "lokalnych"
43 wtyczek (takich jak check_disk, check_procs itp.) na zdalnych
44 maszynach. Wtyczka check_nrpe jest wywoływana z poziomu Nagiosa i
45 wysyła żądania uruchomienia wtyczek do demona NRPE działającego na
46 zdalnej maszynie (jako samodzielny demon lub usługa inetd). Obsługuje
47 przekazywanie argumentów poleceń do serwera, a także natywne
48 szyfrowanie SSL/TLS (w trybie anonimowego DH).
51 Summary: check_nrpe plugin for Nagios
52 Summary(pl.UTF-8): Wtyczka check_nrpe dla Nagiosa
57 check_nrpe plugin for Nagios. This plugin allows running plugins on
58 remote machines using nrpe service.
60 %description plugin -l pl.UTF-8
61 Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie wtyczek
62 na innych komputerach za pomocą demona nrpe.
65 %setup -q -n nrpe-%{version}
73 --with-init-dir=/etc/rc.d/init.d \
74 --with-nrpe-port=%{nsport} \
75 --with-nrpe-user=nagios \
76 --with-nrpe-grp=nagios \
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
85 $RPM_BUILD_ROOT{%{_localstatedir},/var/run/nrpe}
87 install sample-config/nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
88 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
89 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
90 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
93 rm -rf $RPM_BUILD_ROOT
96 /sbin/chkconfig --add nrpe
100 if [ "$1" = "0" ] ; then
102 /sbin/chkconfig --del nrpe
105 %triggerpostun -- %{name} < 2.6-1.1
106 %{__sed} -i -e 's,/var/run/nrpe.pid,/var/run/nrpe/nrpe.pid,' %{_sysconfdir}/nrpe.cfg
109 %defattr(644,root,root,755)
110 %doc Changelog LEGAL README* SECURITY
111 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
112 %attr(755,root,root) %{_sbindir}/nrpe
113 %attr(754,root,root) /etc/rc.d/init.d/nrpe
114 %dir %attr(775,root,nagios) /var/run/nrpe
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_plugindir}/*