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: 70ef9502a3b7e49fa520dbceabfa04d0
11 URL: http://www.nagios.org/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: openssl-tools
15 BuildRequires: rpmbuild(macros) >= 1.202
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 \
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
71 $RPM_BUILD_ROOT%{_localstatedir}
73 install nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
74 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
75 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
76 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
79 rm -rf $RPM_BUILD_ROOT
82 /sbin/chkconfig --add nrpe
83 if [ -f /var/lock/subsys/nrpe ]; then
84 /etc/rc.d/init.d/nrpe restart 1>&2
88 if [ "$1" = "0" ] ; then
89 if [ -f /var/lock/subsys/nrpe ]; then
90 /etc/rc.d/init.d/nrpe stop 1>&2
92 /sbin/chkconfig --del nrpe
96 %defattr(644,root,root,755)
97 %doc Changelog LEGAL README* SECURITY
98 %attr(754,root,root) /etc/rc.d/init.d/nrpe
99 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
100 %attr(755,root,root) %{_sbindir}/nrpe
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_plugindir}/*