summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-analyzer/nagios-nrpe/ChangeLog8
-rw-r--r--net-analyzer/nagios-nrpe/Manifest13
-rw-r--r--net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.01
-rw-r--r--net-analyzer/nagios-nrpe/files/nrpe-2.0 (renamed from net-analyzer/nagios-nrpe/files/nrpe)3
-rw-r--r--net-analyzer/nagios-nrpe/files/nrpe-2.0.cfg (renamed from net-analyzer/nagios-nrpe/files/nrpe.cfg)28
-rw-r--r--net-analyzer/nagios-nrpe/metadata.xml17
-rw-r--r--net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild4
-rw-r--r--net-analyzer/nagios-nrpe/nagios-nrpe-2.0.ebuild52
8 files changed, 107 insertions, 19 deletions
diff --git a/net-analyzer/nagios-nrpe/ChangeLog b/net-analyzer/nagios-nrpe/ChangeLog
index c81bd7c33c88..2aab4c4681aa 100644
--- a/net-analyzer/nagios-nrpe/ChangeLog
+++ b/net-analyzer/nagios-nrpe/ChangeLog
@@ -1,11 +1,15 @@
# ChangeLog for net-analyzer/nagios-nrpe
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/ChangeLog,v 1.9 2003/12/06 21:30:45 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/ChangeLog,v 1.10 2004/03/10 14:20:21 malverian Exp $
+*nagios-nrpe-2.0 (10 Mar 2004)
+ 10 Mar 2004; Philip Walls <malverian@gentoo.org> nagios-nrpe-2.0.ebuild
+ Version bump. Removed old nrpe init script and nrpe.cfg. Added metadata
+
+*nagios-nrpe-1.8-r1 (17 Jun 2003)
06 Dec 2003; Heinrich Wendel <lanius@gentoo.org> nagios-nrpe-1.8-r1.ebuild:
bug 34355
-*nagios-nrpe-1.8-r1 (17 Jun 2003)
17 Jun 2003; Dean Bailey <alron@gentoo.org> nagios-nrpe-1.8-r1 :
Fix for bugs #17885 and #19539, updated sample conf also.
diff --git a/net-analyzer/nagios-nrpe/Manifest b/net-analyzer/nagios-nrpe/Manifest
index 8c19e0a3bcb7..f8f65ab5f02a 100644
--- a/net-analyzer/nagios-nrpe/Manifest
+++ b/net-analyzer/nagios-nrpe/Manifest
@@ -1,7 +1,10 @@
-MD5 1f42729a3acc4a58cb6a2c8d433eff72 nagios-nrpe-1.8-r1.ebuild 1416
-MD5 f0f52c876a4c2a82470e643b3fb144b8 ChangeLog 1074
-MD5 77b7ce60fefcec082219a891d56a5d85 files/nrpe 449
+MD5 c2e74d6060f2e91abccc201f0b832039 ChangeLog 1258
+MD5 3bfa671c2b279d05624b191c70f082d8 nagios-nrpe-1.8-r1.ebuild 1421
+MD5 279334df51fdc2c9a9e65ca717d4d364 nagios-nrpe-2.0.ebuild 1427
+MD5 6a5890137b6cd35bb0b647ff45f69667 metadata.xml 395
+MD5 1ea034ce9ade9210fa8c4ade4d51d132 files/nrpe-2.0 462
+MD5 a9506069b34b36a580c78efa20b05cc9 files/digest-nagios-nrpe-1.8-r1 59
MD5 1ea034ce9ade9210fa8c4ade4d51d132 files/nrpe-1.8 462
-MD5 7436efd047d6ef909de4f68ed97badca files/nrpe.cfg 3130
MD5 3c91382446609ec78fa98d94509539dd files/nrpe-1.8.cfg 3501
-MD5 a9506069b34b36a580c78efa20b05cc9 files/digest-nagios-nrpe-1.8-r1 59
+MD5 3c91382446609ec78fa98d94509539dd files/nrpe-2.0.cfg 3501
+MD5 f1fc0bb370291c6d0304900e25a62dc6 files/digest-nagios-nrpe-2.0 59
diff --git a/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.0 b/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.0
new file mode 100644
index 000000000000..fb06ce736c2b
--- /dev/null
+++ b/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.0
@@ -0,0 +1 @@
+MD5 70ef9502a3b7e49fa520dbceabfa04d0 nrpe-2.0.tar.gz 52157
diff --git a/net-analyzer/nagios-nrpe/files/nrpe b/net-analyzer/nagios-nrpe/files/nrpe-2.0
index 3989bca7a26f..dfb4f832138e 100644
--- a/net-analyzer/nagios-nrpe/files/nrpe
+++ b/net-analyzer/nagios-nrpe/files/nrpe-2.0
@@ -9,7 +9,8 @@ start() {
start-stop-daemon --start --quiet --name nrpe \
--startas /usr/nagios/bin/nrpe \
-c nagios:nagios \
- -- -d /etc/nagios/nrpe.cfg
+ -- -c /etc/nagios/nrpe.cfg \
+ --daemon
eend $? "Failed to Start nrpe"
}
diff --git a/net-analyzer/nagios-nrpe/files/nrpe.cfg b/net-analyzer/nagios-nrpe/files/nrpe-2.0.cfg
index 3132ea336507..3f35b7e46964 100644
--- a/net-analyzer/nagios-nrpe/files/nrpe.cfg
+++ b/net-analyzer/nagios-nrpe/files/nrpe-2.0.cfg
@@ -2,7 +2,7 @@
# Sample NRPE Config File
# Written by: Ethan Galstad (nagios@nagios.org)
#
-# Last Modified: 06-03-2002
+# Last Modified: 12-30-2002
#
# NOTES:
# This is a sample configuration file for the NRPE daemon. It needs to be
@@ -74,6 +74,14 @@ debug=0
+# COMMAND TIMEOUT
+# This specifies the maximum number of seconds that the NRPE daemon will
+# allow plugins to finish executing before killing them off.
+
+command_timeout=60
+
+
+
# COMMAND DEFINITIONS
# Command definitions that this daemon will run. Definitions
# are in the following format:
@@ -89,11 +97,13 @@ debug=0
# Note: Any plugins that are used in the command lines must reside
# on the machine that this daemon is running on! The examples below
# assume that you have plugins installed in a /usr/nagios/libexec
-# directory.
-
-command[check_users]=/usr/nagios/libexec/check_users 5 10
-command[check_load]=/usr/nagios/libexec/check_load 5 10 15 20 25 30
-command[check_disk1]=/usr/nagios/libexec/check_disk 80 95 /dev/hda1
-command[check_disk2]=/usr/nagios/libexec/check_disk 80 95 /dev/hdb1
-command[check_zombie_procs]=/usr/nagios/libexec/check_procs 5 10 Z
-command[check_total_procs]=/usr/nagios/libexec/check_procs 150 200
+# directory. Also note that you will have to modify the definitions below
+# to match the argument format the plugins expect. Remember, these are
+# examples only!
+
+command[check_users]=/usr/nagios/libexec/check_users -w 5 -c 10
+command[check_load]=/usr/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
+command[check_disk1]=/usr/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1
+command[check_disk2]=/usr/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1
+command[check_zombie_procs]=/usr/nagios/libexec/check_procs -w 5 -c 10 -s Z
+command[check_total_procs]=/usr/nagios/libexec/check_procs -w 150 -c 200
diff --git a/net-analyzer/nagios-nrpe/metadata.xml b/net-analyzer/nagios-nrpe/metadata.xml
new file mode 100644
index 000000000000..88678829037b
--- /dev/null
+++ b/net-analyzer/nagios-nrpe/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+
+<herd>no-herd</herd>
+
+<maintainer>
+ <email>malverian@gentoo.org</email>
+</maintainer>
+
+<longdescription>
+ A daemon for allowing Nagios to connect directly to servers and
+ execute commands defined in a centralized configuration file.
+</longdescription>
+
+</pkgmetadata>
+
diff --git a/net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild b/net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild
index 67e2aefe7407..6eb79679b712 100644
--- a/net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild
+++ b/net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild,v 1.4 2004/01/03 13:55:55 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-1.8-r1.ebuild,v 1.5 2004/03/10 14:20:21 malverian Exp $
inherit eutils
DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor"
diff --git a/net-analyzer/nagios-nrpe/nagios-nrpe-2.0.ebuild b/net-analyzer/nagios-nrpe/nagios-nrpe-2.0.ebuild
new file mode 100644
index 000000000000..c09d18caf18c
--- /dev/null
+++ b/net-analyzer/nagios-nrpe/nagios-nrpe-2.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-2.0.ebuild,v 1.1 2004/03/10 14:20:21 malverian Exp $
+inherit eutils
+
+DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor"
+HOMEPAGE="http://www.nagios.org/"
+SRC_URI="mirror://sourceforge/nagios/nrpe-${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+IUSE=""
+DEPEND=">=net-analyzer/nagios-plugins-1.3.0"
+S="${WORKDIR}/nrpe-${PV}"
+
+pkg_setup() {
+ enewgroup nagios
+ enewuser nagios -1 /bin/bash /dev/null nagios
+}
+
+src_compile() {
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr/nagios \
+ --localstatedir=/var/nagios \
+ --sysconfdir=/etc/nagios \
+ --with-nrpe-user=nagios \
+ --with-nrpe-grp=nagios \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+ emake all || die
+}
+
+src_install() {
+ dodoc LEGAL Changelog README
+ insinto /etc/nagios
+ newins ${FILESDIR}/nrpe-${PV}.cfg nrpe.cfg
+ exeinto /usr/nagios/bin
+ doexe src/nrpe
+ fowners nagios:nagios /usr/nagios/bin/nrpe
+ exeinto /usr/nagios/libexec
+ doexe src/check_nrpe
+ fowners nagios:nagios /usr/nagios/libexec/check_nrpe
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/nrpe-${PV} nrpe
+}
+pkg_postinst() {
+ einfo
+ einfo "If you are using the nrpe daemon, remember to edit"
+ einfo "the config file /etc/nagios/nrpe.cfg"
+ einfo
+}