Date: Thu, 8 Mar 2007 18:38:29 -0800 (PST) From: Kian Mohageri <kian.mohageri@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: kian.mohageri@gmail.com Subject: ports/110112: [NEW PORT] net-mgmt/nagios-pf-plugin: Nagios plugin for checking PF Message-ID: <200703090238.l292cTo8022010@alvis.restek.wwu.edu> Resent-Message-ID: <200703090320.l293K51j063517@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 110112 >Category: ports >Synopsis: [NEW PORT] net-mgmt/nagios-pf-plugin: Nagios plugin for checking PF >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: Fri Mar 09 03:20:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Kian Mohageri >Release: FreeBSD 6.2-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD alvis.restek.wwu.edu 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #0: Thu Feb 15 01:38:23 PST 2007 >Description: check_pf is a plugin intended for use with the Nagios network monitoring system. This plugin checks the status of PF, the OpenBSD packet filter, and compares the current state count to given or default thresholds, returning the result. It is written in C. WWW: http://www.zampanosbits.com/check_pf/ Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- nagios-pf-plugin-0.1.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: # # nagios-pf-plugin # nagios-pf-plugin/pkg-descr # nagios-pf-plugin/Makefile # nagios-pf-plugin/files # nagios-pf-plugin/files/pkg-message.in # nagios-pf-plugin/distinfo # echo c - nagios-pf-plugin mkdir -p nagios-pf-plugin > /dev/null 2>&1 echo x - nagios-pf-plugin/pkg-descr sed 's/^X//' >nagios-pf-plugin/pkg-descr << 'END-of-nagios-pf-plugin/pkg-descr' Xcheck_pf is a plugin intended for use with the Nagios network Xmonitoring system. This plugin checks the status of PF, the OpenBSD Xpacket filter, and compares the current state count to given or default Xthresholds, returning the result. It is written in C. X XWWW: http://www.zampanosbits.com/check_pf/ END-of-nagios-pf-plugin/pkg-descr echo x - nagios-pf-plugin/Makefile sed 's/^X//' >nagios-pf-plugin/Makefile << 'END-of-nagios-pf-plugin/Makefile' X# New ports collection makefile for: nagios-pf-plugin X# Date created: 2007-03-08 X# Whom: Kian Mohageri <kian.mohageri@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= nagios-pf-plugin XPORTVERSION= 0.1 XCATEGORIES= net-mgmt XMASTER_SITES= http://www.zampanosbits.com/check_pf/ XDISTNAME= check_pf-${PORTVERSION} X XMAINTAINER= kian.mohageri@gmail.com XCOMMENT= Nagios plugin for checking PF X XNAGIOS_PLUGIN_DIR?= libexec/nagios/ X XPLIST_FILES= ${NAGIOS_PLUGIN_DIR}/check_pf XPLIST_DIRS= ${NAGIOS_PLUGIN_DIR} XSUB_FILES= pkg-message XSUB_LIST= MASTER_SITES=${MASTER_SITES} \ X NAGIOS_PLUGIN_DIR=${NAGIOS_PLUGIN_DIR} X Xpre-everything:: X @${ECHO_MSG} "" X @${ECHO_MSG} "You can redefine the following additional variables:" X @${ECHO_MSG} "" X @${ECHO_MSG} " NAGIOS_PLUGIN_DIR=${NAGIOS_PLUGIN_DIR}" X @${ECHO_MSG} "" X @${ECHO_MSG} "The plugin directory is relative to PREFIX:" X @${ECHO_MSG} "" X @${ECHO_MSG} " PREFIX=${PREFIX}" X @${ECHO_MSG} "" X Xpost-patch: X ${REINPLACE_CMD} -e \ X "s,/usr/local/libexec/nagios,${PREFIX}/${NAGIOS_PLUGIN_DIR}," \ X ${WRKSRC}/Makefile X Xpre-install: X @${MKDIR} ${PREFIX}/${NAGIOS_PLUGIN_DIR} X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-nagios-pf-plugin/Makefile echo c - nagios-pf-plugin/files mkdir -p nagios-pf-plugin/files > /dev/null 2>&1 echo x - nagios-pf-plugin/files/pkg-message.in sed 's/^X//' >nagios-pf-plugin/files/pkg-message.in << 'END-of-nagios-pf-plugin/files/pkg-message.in' X Xcheck_pf has been installed to %%PREFIX%%/%%NAGIOS_PLUGIN_DIR%%. X Xcheck_pf needs read permission to the pf(4) pseudo-device, i.e. /dev/pf. X XAssuming check_pf will be run by user `nagios', the following will work: X X # chmod 640 /dev/pf X # chgrp nagios /dev/pf X XTo make sure the change persists across reboots, add the following Xto /etc/devfs.conf: X X # nrpe2/nagios needs to be able to read statistics X own pf root:nagios X perm pf 0640 X XPlease refer to the online documentation for additional information. X X%%MASTER_SITES%% X END-of-nagios-pf-plugin/files/pkg-message.in echo x - nagios-pf-plugin/distinfo sed 's/^X//' >nagios-pf-plugin/distinfo << 'END-of-nagios-pf-plugin/distinfo' XMD5 (check_pf-0.1.tar.gz) = ac81f67b7c895134e7c0af87248c54e2 XSHA256 (check_pf-0.1.tar.gz) = 26109ee18f439045c89c24a773877c9bf0b986154d638898aaaef3a9f9e6e92a XSIZE (check_pf-0.1.tar.gz) = 3195 END-of-nagios-pf-plugin/distinfo exit --- nagios-pf-plugin-0.1.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?200703090238.l292cTo8022010>