1 Summary: Nagios remote plugin execution service/plugin
2 Summary(pl): Demon i wtyczka zdalnego wywo³ywania wtyczek Nagios
8 Source0: http://dl.sourceforge.net/nagios/nrpe-%{version}.tar.gz
9 # Source0-md5: 187c9870119f7e1a64274e44aeef08aa
11 URL: http://www.nagios.org/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: openssl-tools
15 BuildRequires: rpmbuild(macros) >= 1.268
16 Requires(post,postun): /sbin/chkconfig
17 Requires: nagios-common
18 Requires: nagios-plugins
21 Obsoletes: netsaint-nrpe
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _sysconfdir /etc/nagios
25 %define _datadir %{_prefix}/share/%{name}
26 %define _plugindir %{_libdir}/nagios/plugins
27 %define _libexecdir %{_plugindir}
28 %define _localstatedir %{_var}/log/nagios
32 Nagios nrpe allows you to remotely execute plugins on other hosts and
33 report the plugin output back to the monitoring host.
36 Nagios npre pozwala zdalnie uruchamiaæ wtyczki na innych hostach, a
37 wynik ich dzia³ania zwracaæ z powrotem do hosta monitoruj±cego.
40 Summary: check_nrpe plugin for Nagios
41 Summary(pl): Wtyczka check_nrpe dla Nagiosa
46 check_nrpe plugin for Nagios. This plugin allows running plugins on
47 remote machines using nrpe service.
49 %description plugin -l pl
50 Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie wtyczek
51 na innych komputerach za pomoc± demona nrpe.
54 %setup -q -n nrpe-%{version}
61 --with-init-dir=/etc/rc.d/init.d \
62 --with-nrpe-port=%{nsport} \
63 --with-nrpe-user=nagios \
64 --with-nrpe-grp=nagios \
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
73 $RPM_BUILD_ROOT%{_localstatedir}
75 install sample-config/nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
76 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
77 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
78 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
81 rm -rf $RPM_BUILD_ROOT
84 /sbin/chkconfig --add nrpe
88 if [ "$1" = "0" ] ; then
90 /sbin/chkconfig --del nrpe
94 %defattr(644,root,root,755)
95 %doc Changelog LEGAL README* SECURITY
96 %attr(754,root,root) /etc/rc.d/init.d/nrpe
97 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
98 %attr(755,root,root) %{_sbindir}/nrpe
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_plugindir}/*