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: rpmbuild(macros) >= 1.202
15 BuildRequires: openssl-tools
17 Requires(pre): /usr/bin/getgid
18 Requires(pre): /bin/id
19 Requires(pre): /usr/sbin/groupadd
20 Requires(pre): /usr/sbin/useradd
21 Requires(post,postun): /sbin/chkconfig
22 Requires: nagios-plugins
24 Obsoletes: netsaint-nrpe
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _sysconfdir /etc/nagios
28 %define _datadir %{_prefix}/share/%{name}
29 %define _plugindir %{_libdir}/nagios/plugins
30 %define _localstatedir %{_var}/log/nagios
34 Nagios nrpe allows you to remotely execute plugins on other hosts
35 and report the plugin output back to the monitoring host.
38 Nagios npre pozwala zdalnie uruchamiaæ wtyczki na innych hostach,
39 a wynik ich dzia³ania zwracaæ z powrotem do hosta monitoruj±cego.
42 Summary: check_nrpe plugin for Nagios
43 Summary(pl): Wtyczka check_nrpe dla Nagiosa
48 check_nrpe plugin for Nagios. This plugin allows running plugins on
49 remote machines using nrpe service.
51 %description plugin -l pl
52 Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie
53 wtyczek na innych komputerach za pomoc± demona nrpe.
56 %setup -q -n nrpe-%{version}
63 --with-init-dir=/etc/rc.d/init.d \
64 --with-nrpe-port=%{nsport} \
65 --with-nrpe-user=nagios \
66 --with-nrpe-grp=nagios \
68 --exec-prefix=%{_sbindir} \
69 --bindir=%{_sbindir} \
70 --libexecdir=%{_plugindir} \
71 --datadir=%{_prefix}/share/nagios \
72 --sysconfdir=%{_sysconfdir} \
73 --localstatedir=%{_localstatedir}
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
80 $RPM_BUILD_ROOT%{_localstatedir}
82 install nrpe.cfg $RPM_BUILD_ROOT/etc/nagios/nrpe.cfg
83 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
84 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
85 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
88 rm -rf $RPM_BUILD_ROOT
91 /sbin/chkconfig --add nrpe
92 if [ -f /var/lock/subsys/nrpe ]; then
93 /etc/rc.d/init.d/nrpe restart 1>&2
97 if [ "$1" = "0" ] ; then
98 if [ -f /var/lock/subsys/nrpe ]; then
99 /etc/rc.d/init.d/nrpe stop 1>&2
101 /sbin/chkconfig --del nrpe
105 %defattr(644,root,root,755)
106 %doc Changelog LEGAL README* SECURITY
107 %attr(754,root,root) /etc/rc.d/init.d/nrpe
108 %attr(640,root,nagios) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nrpe.cfg
109 %attr(755,root,root) %{_sbindir}/nrpe
112 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_plugindir}/*