]> git.pld-linux.org Git - packages/nagios-nrpe.git/blob - nagios-nrpe.spec
- release 3
[packages/nagios-nrpe.git] / nagios-nrpe.spec
1 Summary:        Nagios remote plugin execution service/plugin
2 Summary(pl.UTF-8):      Demon i wtyczka zdalnego wywoływania wtyczek Nagios
3 Name:           nagios-nrpe
4 Version:        2.12
5 Release:        3
6 License:        GPL v2
7 Group:          Networking
8 Source0:        http://dl.sourceforge.net/nagios/nrpe-%{version}.tar.gz
9 # Source0-md5:  b2d75e2962f1e3151ef58794d60c9e97
10 Source1:        nrpe.init
11 Patch0:         %{name}-config.patch
12 URL:            http://www.nagios.org/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  openssl-devel
16 BuildRequires:  openssl-tools
17 BuildRequires:  rpmbuild(macros) >= 1.268
18 Requires(post,preun):   /sbin/chkconfig
19 Requires:       nagios-common
20 Requires:       rc-scripts
21 Provides:       nagios-core
22 Obsoletes:      netsaint-nrpe
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
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
30 %define         nsport          5666
31
32 %description
33 NRPE is an addon for Nagios that allows you to execute "local" plugins
34 (like check_disk, check_procs, etc.) on remote hosts. The check_nrpe
35 plugin is called from Nagios and makes plugin execution requests to
36 the NRPE daemon running on the remote host (either as a standalone
37 daemon or as a service under inetd). Supports passing command
38 arguments to server, as well as native SSL/TLS encryption (anonymous
39 DH mode).
40
41 %description -l pl.UTF-8
42 NRPE to dodatek do Nagiosa pozwalający na wywoływanie "lokalnych"
43 wtyczek (takich jak check_disk, check_procs itp.) na zdalnych
44 maszynach. Wtyczka check_nrpe jest wywoływana z poziomu Nagiosa i
45 wysyła żądania uruchomienia wtyczek do demona NRPE działającego na
46 zdalnej maszynie (jako samodzielny demon lub usługa inetd). Obsługuje
47 przekazywanie argumentów poleceń do serwera, a także natywne
48 szyfrowanie SSL/TLS (w trybie anonimowego DH).
49
50 %package plugin
51 Summary:        check_nrpe plugin for Nagios
52 Summary(pl.UTF-8):      Wtyczka check_nrpe dla Nagiosa
53 Group:          Networking
54 Requires:       nagios-core
55
56 %description plugin
57 check_nrpe plugin for Nagios. This plugin allows running plugins on
58 remote machines using nrpe service.
59
60 %description plugin -l pl.UTF-8
61 Wtyczka check_nrpe dla Nagiosa. Pozwala na zdalne uruchamianie wtyczek
62 na innych komputerach za pomocą demona nrpe.
63
64 %prep
65 %setup -q -n nrpe-%{version}
66 %patch0 -p1
67
68 %build
69 %{__aclocal}
70 %{__autoconf}
71
72 %configure \
73         --with-init-dir=/etc/rc.d/init.d \
74         --with-nrpe-port=%{nsport} \
75         --with-nrpe-user=nagios \
76         --with-nrpe-grp=nagios \
77         --enable-ssl \
78         --enable-command-args
79
80 %{__make} all
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_libdir}/nagios/plugins,%{_sbindir}} \
85         $RPM_BUILD_ROOT{%{_localstatedir},/var/run/nrpe}
86
87 install sample-config/nrpe.cfg $RPM_BUILD_ROOT%{_sysconfdir}/nrpe.cfg
88 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nrpe
89 install src/nrpe $RPM_BUILD_ROOT%{_sbindir}
90 install src/check_nrpe $RPM_BUILD_ROOT%{_plugindir}
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post
96 /sbin/chkconfig --add nrpe
97 %service nrpe restart
98
99 %preun
100 if [ "$1" = "0" ] ; then
101         %service nrpe stop
102         /sbin/chkconfig --del nrpe
103 fi
104
105 %triggerpostun -- %{name} < 2.6-1.1
106 %{__sed} -i -e 's,/var/run/nrpe.pid,/var/run/nrpe/nrpe.pid,' %{_sysconfdir}/nrpe.cfg
107
108 %files
109 %defattr(644,root,root,755)
110 %doc Changelog LEGAL README* SECURITY
111 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nrpe.cfg
112 %attr(755,root,root) %{_sbindir}/nrpe
113 %attr(754,root,root) /etc/rc.d/init.d/nrpe
114 %dir %attr(775,root,nagios) /var/run/nrpe
115
116 %files plugin
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_plugindir}/*
This page took 0.879186 seconds and 4 git commands to generate.