]> git.pld-linux.org Git - packages/nagios-nrpe.git/blob - nagios-nrpe.spec
858b613ecaf690872fbee52f1905f862d12186b8
[packages/nagios-nrpe.git] / nagios-nrpe.spec
1 Summary:        Nagios remote plugin execution service/plugin
2 Summary(pl):    Demon i wtyczka zdalnego wywo³ywania wtyczek Nagios
3 Name:           nagios-nrpe
4 Version:        2.5.2
5 Release:        1
6 License:        GPL v2
7 Group:          Networking
8 Source0:        http://dl.sourceforge.net/nagios/nrpe-%{version}.tar.gz
9 # Source0-md5:  22afa197db8e4e5b13fac48636917b6d
10 Source1:        nrpe.init
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:       rc-scripts
20 Provides:       nagios-core
21 Obsoletes:      netsaint-nrpe
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
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
29 %define         nsport          5666
30
31 %description
32 NRPE is an addon for Nagios that allows you to execute "local" plugins
33 (like check_disk, check_procs, etc.) on remote hosts. The check_nrpe
34 plugin is called from Nagios and makes plugin execution requests to
35 the NRPE daemon running on the remote host (either as a standalone
36 daemon or as a service under inetd). Supports passing command
37 arguments to server, as well as native SSL/TLS encryption (anonymous
38 DH mode).
39
40 %description -l pl
41 Nagios npre pozwala zdalnie uruchamiaæ wtyczki na innych hostach, a
42 wynik ich dzia³ania zwracaæ z powrotem do hosta monitoruj±cego.
43
44 %package plugin
45 Summary:        check_nrpe plugin for Nagios
46 Summary(pl):    Wtyczka check_nrpe dla Nagiosa
47 Group:          Networking
48 Requires:       nagios-core
49
50 %description plugin
51 check_nrpe plugin for Nagios. This plugin allows running plugins on
52 remote machines using nrpe service.
53
54 %description plugin -l pl
55 Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie wtyczek
56 na innych komputerach za pomoc± demona nrpe.
57
58 %prep
59 %setup -q -n nrpe-%{version}
60 %patch0 -p1
61
62 %build
63 %{__aclocal}
64 %{__autoconf}
65
66 %configure \
67         --with-init-dir=/etc/rc.d/init.d \
68         --with-nrpe-port=%{nsport} \
69         --with-nrpe-user=nagios \
70         --with-nrpe-grp=nagios \
71         --enable-ssl \
72         --enable-command-args
73
74 %{__make} all
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
79         $RPM_BUILD_ROOT%{_localstatedir}
80
81 install sample-config/nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
82 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
83 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
84 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post
90 /sbin/chkconfig --add nrpe
91 %service nrpe restart
92
93 %preun
94 if [ "$1" = "0" ] ; then
95         %service nrpe stop
96         /sbin/chkconfig --del nrpe
97 fi
98
99 %files
100 %defattr(644,root,root,755)
101 %doc Changelog LEGAL README* SECURITY
102 %attr(754,root,root) /etc/rc.d/init.d/nrpe
103 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
104 %attr(755,root,root) %{_sbindir}/nrpe
105
106 %files plugin
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_plugindir}/*
This page took 0.07549 seconds and 2 git commands to generate.