diff options
author | grant <grant> | 2006-05-21 10:28:40 +0000 |
---|---|---|
committer | grant <grant> | 2006-05-21 10:28:40 +0000 |
commit | 8196c775886c7f36fff3ab452120d4b52197ddcf (patch) | |
tree | 12e835bd64f8423529b298cf153823d96cadb6e7 /net | |
parent | a776f13dd6388305f152cefc2dbf95cf1c55822f (diff) | |
download | pkgsrc-8196c775886c7f36fff3ab452120d4b52197ddcf.tar.gz |
initial import of nagios-nrpe-2.5.1 into pkgsrc.
This Nagios addon is designed to provide a way for executing plugins on
a remote host. The check_nrpe plugin runs on the Nagios host and is used
to send plugin execution requests to the nrpe agent on the remote
host. The nrpe agent will then run an appropriate plugins on the
remote host and return the plugin output and return code to the
check_nrpe plugin on the Nagios host.
Diffstat (limited to 'net')
-rw-r--r-- | net/nagios-nrpe/DESCR | 6 | ||||
-rw-r--r-- | net/nagios-nrpe/Makefile | 41 | ||||
-rw-r--r-- | net/nagios-nrpe/PLIST | 4 | ||||
-rw-r--r-- | net/nagios-nrpe/distinfo | 5 | ||||
-rw-r--r-- | net/nagios-nrpe/files/nrpe.sh | 19 | ||||
-rw-r--r-- | net/nagios-nrpe/options.mk | 18 |
6 files changed, 93 insertions, 0 deletions
diff --git a/net/nagios-nrpe/DESCR b/net/nagios-nrpe/DESCR new file mode 100644 index 00000000000..be4a9814b05 --- /dev/null +++ b/net/nagios-nrpe/DESCR @@ -0,0 +1,6 @@ +This Nagios addon is designed to provide a way for executing plugins on +a remote host. The check_nrpe plugin runs on the Nagios host and is used +to send plugin execution requests to the nrpe agent on the remote +host. The nrpe agent will then run an appropriate plugins on the +remote host and return the plugin output and return code to the +check_nrpe plugin on the Nagios host. diff --git a/net/nagios-nrpe/Makefile b/net/nagios-nrpe/Makefile new file mode 100644 index 00000000000..24779a9be87 --- /dev/null +++ b/net/nagios-nrpe/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $ +# + +DISTNAME= nrpe-2.5.1 +PKGNAME= nagios-${DISTNAME} +CATEGORIES= net sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://sourceforge.net/projects/nagios/ +COMMENT= Nagios remote program execution daemon + +GNU_CONFIGURE= yes +USE_PKGINSTALL= yes + +PKG_SYSCONFSUBDIR= nagios +CONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec/nagios +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} + +NAGIOS_USER?= nagios +NAGIOS_GROUP?= ${NAGIOS_USER} + +PKG_GROUPS+= ${NAGIOS_GROUP} +PKG_USERS+= ${NAGIOS_USER}:${NAGIOS_GROUP}::Nagios\ Runtime\ User + +CONFIGURE_ARGS+= --with-nrpe-user=${NAGIOS_USER:Q} +CONFIGURE_ARGS+= --with-nrpe-group=${NAGIOS_GROUP:Q} + +CONF_FILES+= ${PREFIX}/share/examples/nagios/nrpe.cfg ${PKG_SYSCONFDIR}/nrpe.cfg +RCD_SCRIPTS+= nrpe + +.include "options.mk" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin + ${INSTALL_DATA_DIR} ${PREFIX}/libexec/nagios + ${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nagios + ${INSTALL_DATA} ${WRKSRC}/sample-config/nrpe.cfg ${PREFIX}/share/examples/nagios + +.include "../../mk/bsd.pkg.mk" diff --git a/net/nagios-nrpe/PLIST b/net/nagios-nrpe/PLIST new file mode 100644 index 00000000000..04e0cc23e7b --- /dev/null +++ b/net/nagios-nrpe/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $ +sbin/nrpe +libexec/nagios/check_nrpe +share/examples/nagios/nrpe.cfg diff --git a/net/nagios-nrpe/distinfo b/net/nagios-nrpe/distinfo new file mode 100644 index 00000000000..0149bcb1ec7 --- /dev/null +++ b/net/nagios-nrpe/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $ + +SHA1 (nrpe-2.5.1.tar.gz) = 1beab9dc5fe77b722a12161b23b536ac5e28a6a4 +RMD160 (nrpe-2.5.1.tar.gz) = 757eb92cde878d8a0d3e483149d8969728ed7e03 +Size (nrpe-2.5.1.tar.gz) = 100382 bytes diff --git a/net/nagios-nrpe/files/nrpe.sh b/net/nagios-nrpe/files/nrpe.sh new file mode 100644 index 00000000000..667b4ac7b9f --- /dev/null +++ b/net/nagios-nrpe/files/nrpe.sh @@ -0,0 +1,19 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: nrpe.sh,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $ +# +# PROVIDE: nrpe +# REQUIRE: DAEMON + +. /etc/rc.subr + +name="nrpe" +rcvar=$name +command="@PREFIX@/sbin/${name}" +config="@PKG_SYSCONFDIR@/${name}.cfg" +pidfile="/var/run/${name}.pid" + +command_args="-c $config -d" + +load_rc_config $name +run_rc_command "$1" diff --git a/net/nagios-nrpe/options.mk b/net/nagios-nrpe/options.mk new file mode 100644 index 00000000000..d230c6487b7 --- /dev/null +++ b/net/nagios-nrpe/options.mk @@ -0,0 +1,18 @@ +# $NetBSD: options.mk,v 1.1.1.1 2006/05/21 10:28:40 grant Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.nagios-nrpe +PKG_SUPPORTED_OPTIONS= ssl tcpwrappers +PKG_SUGGESTED_OPTIONS= tcpwrappers + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mssl) +CONFIGURE_ARGS+= --enable-ssl +. include "../../security/openssl/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-ssl +.endif + +.if !empty(PKG_OPTIONS:Mtcpwrappers) +. include "../../security/tcp_wrappers/buildlink3.mk" +.endif |