From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 19 13:00:37 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0888C16A4CE for ; Wed, 19 Nov 2003 13:00:37 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 259DE43F93 for ; Wed, 19 Nov 2003 13:00:34 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id hAJL0XFY004596 for ; Wed, 19 Nov 2003 13:00:33 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id hAJL0XRM004595; Wed, 19 Nov 2003 13:00:33 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 19 Nov 2003 13:00:33 -0800 (PST) Resent-Message-Id: <200311192100.hAJL0XRM004595@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Paul Dlug Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A59816A4CE for ; Wed, 19 Nov 2003 12:53:38 -0800 (PST) Received: from lugnut.aps.org (lugnut.aps.org [149.28.3.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77CE543F85 for ; Wed, 19 Nov 2003 12:53:37 -0800 (PST) (envelope-from paul@lugnut.aps.org) Received: from lugnut.aps.org (localhost [127.0.0.1]) by lugnut.aps.org (8.12.10/8.12.10) with ESMTP id hAJKrZV0073651; Wed, 19 Nov 2003 15:53:35 -0500 (EST) (envelope-from paul@lugnut.aps.org) Received: (from paul@localhost) by lugnut.aps.org (8.12.9p1/8.12.10/Submit) id hAJKrYhk073650; Wed, 19 Nov 2003 15:53:34 -0500 (EST) (envelope-from paul) Message-Id: <200311192053.hAJKrYhk073650@lugnut.aps.org> Date: Wed, 19 Nov 2003 15:53:34 -0500 (EST) From: Paul Dlug To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: paul@nerdlabs.com Subject: ports/59485: [NEW PORT] net/nrpe2: Nagios Remote Plugin Executor X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2003 21:00:37 -0000 >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 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 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: