Date: Wed, 19 Nov 2003 15:53:34 -0500 (EST) From: Paul Dlug <paul@nerdlabs.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: paul@nerdlabs.com Subject: ports/59485: [NEW PORT] net/nrpe2: Nagios Remote Plugin Executor Message-ID: <200311192053.hAJKrYhk073650@lugnut.aps.org> Resent-Message-ID: <200311192100.hAJL0XRM004595@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 59485 >Category: ports >Synopsis: [NEW PORT] net/nrpe2: Nagios Remote Plugin Executor >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 19 13:00:33 PST 2003 >Closed-Date: >Last-Modified: >Originator: Paul Dlug >Release: FreeBSD 5.1-RELEASE-p10 i386 >Organization: >Environment: System: FreeBSD lugnut.aps.org 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #8: Sat Oct 4 17:42:40 EDT >Description: Description follows. Submitted net/nrpe2 since the "new" nrpe is incompatible with version one. Both can be installed in parallel but share the same configuration file. nrpe is used to execute Nagios plugins on remote hosts and report the results to the main Nagios server. From the Nagios homepage: Allows you to execute "local" plugins (like check_disk, check_procs, etc.) on remote hosts. The check_nrpe plugin is called from Nagios and actually makes the plugin requests to the remote host. Requires that nrpe be running on the remote host (either as a standalone daemon or as a service under inetd). nrpe2 is incompatible with nrpe version 1, if you are running this version see net/nrpe. Both ports can be installed in parallel but share the same configuration file by default. This is easily changed in the nrpe startup file. WWW: http://www.nagios.org/ Generated with FreeBSD Port Tools 0.50 >How-To-Repeat: >Fix: --- nrpe2-2.0.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # nrpe2 # nrpe2/Makefile # nrpe2/distinfo # nrpe2/pkg-descr # nrpe2/pkg-plist # nrpe2/pkg-install # echo c - nrpe2 mkdir -p nrpe2 > /dev/null 2>&1 echo x - nrpe2/Makefile sed 's/^X//' >nrpe2/Makefile << 'END-of-nrpe2/Makefile' X# New ports collection makefile for: nrpe X# Date created: 1 Aug 2002 X# Whom: Paul Dlug<paul@nerdlabs.com> X# X# $FreeBSD: ports/net/nrpe/Makefile,v 1.5 2003/08/06 14:31:28 leeym Exp $ X# X XPORTNAME= nrpe2 XPORTVERSION= 2.0 XPORTREVISION= 0 XCATEGORIES= net XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= nagios XDISTNAME= nrpe-${PORTVERSION} X XMAINTAINER= paul@nerdlabs.com XCOMMENT= Nagios Remote Plugin Executor X XRUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net/nagios-plugins X XGNU_CONFIGURE= yes X XCONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec/nagios --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc X X.if defined(WITH_SSL) XUSE_OPENSSL= yes XCONFIGURE_ARGS+= --enable-ssl X.else XCONFIGURE_ARGS+= --disable-ssl X.endif X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin/nrpe2 X ${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios/check_nrpe2 X ${INSTALL_DATA} ${WRKSRC}/nrpe.cfg ${PREFIX}/etc/nrpe.cfg-sample X ${INSTALL_SCRIPT} ${WRKSRC}/init-script.freebsd ${PREFIX}/etc/rc.d/nrpe.sh X X.include <bsd.port.mk> END-of-nrpe2/Makefile echo x - nrpe2/distinfo sed 's/^X//' >nrpe2/distinfo << 'END-of-nrpe2/distinfo' XMD5 (nrpe-2.0.tar.gz) = 70ef9502a3b7e49fa520dbceabfa04d0 END-of-nrpe2/distinfo echo x - nrpe2/pkg-descr sed 's/^X//' >nrpe2/pkg-descr << 'END-of-nrpe2/pkg-descr' Xnrpe is used to execute Nagios plugins on remote hosts and report the results Xto the main Nagios server. From the Nagios homepage: X XAllows you to execute "local" plugins (like check_disk, check_procs, etc.) on Xremote hosts. The check_nrpe plugin is called from Nagios and actually makes Xthe plugin requests to the remote host. Requires that nrpe be running on the Xremote host (either as a standalone daemon or as a service under inetd). X Xnrpe2 is incompatible with nrpe version 1, if you are running this version Xsee net/nrpe. Both ports can be installed in parallel but share the same Xconfiguration file by default. This is easily changed in the nrpe startup Xfile. X XWWW: http://www.nagios.org/ END-of-nrpe2/pkg-descr echo x - nrpe2/pkg-plist sed 's/^X//' >nrpe2/pkg-plist << 'END-of-nrpe2/pkg-plist' Xsbin/nrpe2 Xetc/nrpe.cfg-sample Xetc/rc.d/nrpe.sh Xlibexec/nagios/check_nrpe2 END-of-nrpe2/pkg-plist echo x - nrpe2/pkg-install sed 's/^X//' >nrpe2/pkg-install << 'END-of-nrpe2/pkg-install' X#!/bin/sh X# X# $FreeBSD: ports/net/nrpe/pkg-install,v 1.1 2003/01/09 22:13:58 edwin Exp $ X# X XPKG_PREFIX=${PKG_PREFIX:=/usr/local} X Xuser=nagios Xgroup=nagios X Xask() { X local question default answer X X question=$1 X default=$2 X if [ -z "${PACKAGE_BUILDING}" ]; then X read -p "${question} [${default}]? " answer X fi X if [ x${answer} = x ]; then X answer=${default} X fi X echo ${answer} X} X Xyesno() { X local dflt question answer X X question=$1 X dflt=$2 X while :; do X answer=$(ask "${question}" "${dflt}") X case "${answer}" in X [Yy]*) return 0;; X [Nn]*) return 1;; X esac X echo "Please answer yes or no." X done X} X Xif [ x"$2" = xPRE-INSTALL ]; then X if /usr/sbin/pw groupshow "${group}" 2>/dev/null; then X echo "You already have a group \"${group}\", so I will use it." X else X echo "You need a group \"${group}\"." X if yesno "Would you like me to create it" y; then X /usr/sbin/pw groupadd ${group} -h - || exit X echo "Done." X else X echo "Please create it, and try again." X exit 1 X fi X fi X X if /usr/sbin/pw user show "${user}" 2>/dev/null; then X echo "You already have a user \"${user}\", so I will use it." X else X echo "You need a user \"${user}\"." X if yesno "Would you like me to create it" y; then X /usr/sbin/pw useradd ${user} -g ${group} -h - -d ${PKG_PREFIX}/var/nagios \ X -s /nonexistent -c "Nagios pseudo-user" || exit X echo "Done." X else X echo "Please create it, and try again." X exit 1 X fi X fi X Xfi END-of-nrpe2/pkg-install exit --- nrpe2-2.0.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311192053.hAJKrYhk073650>