/[smecontribs]/rpms/smeserver-nagios-nrpe/contribs8/smeserver-nagios-nrpe.spec
ViewVC logotype

Contents of /rpms/smeserver-nagios-nrpe/contribs8/smeserver-nagios-nrpe.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sun Oct 27 16:15:33 2013 UTC (11 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-nagios-nrpe-2_0_0-2_el5_sme, HEAD
Changes since 1.1: +12 -2 lines
Error occurred while calculating annotation data.
* Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 2.0.0-2
- adding Requires to smooth install

1 # $Id: smeserver-nagios-nrpe.spec,v 1.1 2013/06/01 13:23:00 unnilennium Exp $
2 # Authority: mweinber
3 # Name: Michael Weinberger
4
5 Summary: Nagios nrpe integration
6 %define name smeserver-nagios-nrpe
7 Name: %{name}
8 %define version 2.0.0
9 %define release 2
10 Version: %{version}
11 Release: %{release}%{?dist}
12 License: GPL
13 Group: Applications/System
14 Source: %{name}-%{version}.tar.gz
15 BuildRoot: /var/tmp/%{name}-buildroot/
16 BuildArch: noarch
17 Requires: smeserver-release >= 7.3
18 Requires: nagios-nrpe >= 2.5.2
19 Requires: nagios-plugins-nrpe >= 2.5.2
20 Requires: nagios-plugins
21 Requires: nagios-plugins-setuid
22 Requires: perl-Config-Tiny
23 Requires: perl-Class-Accessor
24 Requires: smeserver-nagios-backup
25 Requires: perl-Nagios-Plugin
26 Requires: smeserver-nagios-plugins-mysql
27
28 BuildRequires: e-smith-devtools
29
30 AutoReq: no
31
32 %changelog
33 * Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 2.0.0-2
34 - adding Requires to smooth install
35
36 * Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1
37 removed scripts from specfile
38
39 * Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de>
40 Version 1.0.3
41 modified templateexpand in events (/etc/sudoer perms bug)
42
43 * Thu Oct 15 2007 Michael Weinberger <mweinber@neddix.de>
44 - Initial release
45
46 %description
47 Nagios nrpe integration
48
49 Setting the TCP wrapper allowed hosts:
50 config setprop nrpe HostsAllow "127.0.0.1 10.203.104.0/255.255.252.0 172.22.32.0/255.255.240.0"
51 expand-template /etc/hosts.allow
52
53 To execute plugins as root:
54 config setprop nrpe sudoPlugins yes
55 expand-template /etc/sudoers
56 And set command_prefix=/usr/bin/sudo in /etc/nagios/nrpe.cfg
57
58
59 To check the connection run:
60 /usr/lib/nagios/plugins/check_nrpe -H NRPE_SERVER_IP
61 Expected Output is: "NRPE v2.5.1"
62
63
64 %prep
65 %setup
66
67 %build
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
72 rm -f %{name}-%{version}-filelist
73 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
74 >> %{name}-%{version}-filelist
75 find $RPM_BUILD_ROOT -depth -type l -print |\
76 sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files -f %{name}-%{version}-filelist
82 %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed