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: e083553deaf47a79fd23906d823afc59
11 Patch0: %{name}-config.patch
12 URL: http://www.nagios.org/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: openssl-tools
16 BuildRequires: rpmbuild(macros) >= 1.268
17 Requires(post,preun): /sbin/chkconfig
18 Requires: nagios-common
19 Requires: nagios-plugins
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 Nagios nrpe allows you to remotely execute plugins on other hosts and
34 report the plugin output back to the monitoring host.
37 Nagios npre pozwala zdalnie uruchamiaæ wtyczki na innych hostach, a
38 wynik ich dzia³ania zwracaæ z powrotem do hosta monitoruj±cego.
41 Summary: check_nrpe plugin for Nagios
42 Summary(pl): Wtyczka check_nrpe dla Nagiosa
47 check_nrpe plugin for Nagios. This plugin allows running plugins on
48 remote machines using nrpe service.
50 %description plugin -l pl
51 Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie wtyczek
52 na innych komputerach za pomoc± demona nrpe.
55 %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 \
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
75 $RPM_BUILD_ROOT%{_localstatedir}
77 install sample-config/nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
78 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
79 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
80 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
83 rm -rf $RPM_BUILD_ROOT
86 /sbin/chkconfig --add nrpe
90 if [ "$1" = "0" ] ; then
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}/*