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 Source2: nrpe-command.cfg
12 Patch0: %{name}-config.patch
13 URL: http://www.nagios.org/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: openssl-devel
17 BuildRequires: openssl-tools
18 BuildRequires: rpmbuild(macros) >= 1.268
19 Requires(post,preun): /sbin/chkconfig
20 Requires: nagios-common
23 Obsoletes: netsaint-nrpe
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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
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).
52 Summary: check_nrpe plugin for Nagios
53 Summary(pl.UTF-8): Wtyczka check_nrpe dla Nagiosa
58 check_nrpe plugin for Nagios. This plugin allows running plugins on
59 remote machines using nrpe service.
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.
66 %setup -q -n nrpe-%{version}
74 --with-init-dir=/etc/rc.d/init.d \
75 --with-nrpe-port=%{nsport} \
76 --with-nrpe-user=nagios \
77 --with-nrpe-grp=nagios \
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/plugins,%{_libdir}/nagios/plugins,%{_sbindir}} \
86 $RPM_BUILD_ROOT{%{_localstatedir},/var/run/nrpe}
88 install sample-config/nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
89 sed -e 's,@plugindir@,%{_plugindir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/plugins/nrpe.cfg
90 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
91 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
92 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
95 rm -rf $RPM_BUILD_ROOT
98 /sbin/chkconfig --add nrpe
102 if [ "$1" = "0" ] ; then
104 /sbin/chkconfig --del nrpe
107 %triggerpostun -- %{name} < 2.6-1.1
108 %{__sed} -i -e 's,/var/run/nrpe.pid,/var/run/nrpe/nrpe.pid,' %{_sysconfdir}/nrpe.cfg
111 %defattr(644,root,root,755)
112 %doc Changelog LEGAL README* SECURITY
113 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
114 %attr(755,root,root) %{_sbindir}/nrpe
115 %attr(754,root,root) /etc/rc.d/init.d/nrpe
116 %dir %attr(775,root,nagios) /var/run/nrpe
119 %defattr(644,root,root,755)
120 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins/nrpe.cfg
121 %attr(755,root,root) %{_plugindir}/check_nrpe