ports/135523: New port: net-mgmt/nagios-snmp-plugins-extras - another set of Nagios plugins
Alexey V.Degtyarev
alexey at renatasystems.org
Fri Jun 12 23:20:04 UTC 2009
>Number: 135523
>Category: ports
>Synopsis: New port: net-mgmt/nagios-snmp-plugins-extras - another set of Nagios plugins
>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 Jun 12 23:20:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Alexey V. Degtyarev
>Release: FreeBSD 7.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD renatasystems.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 08:58:24 UTC 2009 root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The general idea of these scripts is to check as many things as possible with
SNMP: disks, memory, load, network interfaces, running processes, etc...
The other idea is to select disks, interfaces, process using regular
expressions:
- it is possible to test more than one disk/int/process in one Nagios check
(ex.: eth* instead of eth0,eth1,eth2,...)
- you only have to provide a unique part of the name to select a
disk/int/process (ex. : "C:" instead of "C:\ Label: Serial Number xxxxxxx"
makes it easy to use on multiple Windows hosts).
Most of these scripts can make performance outputs.
WWW: http://nagios.manubulon.com/
>How-To-Repeat:
>Fix:
--- nagios-snmp-plugins-extras.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-snmp-plugins-extras
# nagios-snmp-plugins-extras/pkg-descr
# nagios-snmp-plugins-extras/distinfo
# nagios-snmp-plugins-extras/Makefile
# nagios-snmp-plugins-extras/pkg-plist
#
echo c - nagios-snmp-plugins-extras
mkdir -p nagios-snmp-plugins-extras > /dev/null 2>&1
echo x - nagios-snmp-plugins-extras/pkg-descr
sed 's/^X//' >nagios-snmp-plugins-extras/pkg-descr << 'b0de91bed447d6c0eae54cb4defd3900'
XThe general idea of these scripts is to check as many things as possible with
XSNMP: disks, memory, load, network interfaces, running processes, etc...
X
XThe other idea is to select disks, interfaces, process using regular
Xexpressions:
X
X- it is possible to test more than one disk/int/process in one Nagios check
X (ex.: eth* instead of eth0,eth1,eth2,...)
X
X- you only have to provide a unique part of the name to select a
X disk/int/process (ex. : "C:" instead of "C:\ Label: Serial Number xxxxxxx"
X makes it easy to use on multiple Windows hosts).
X
XMost of these scripts can make performance outputs.
X
XWWW: http://nagios.manubulon.com/
b0de91bed447d6c0eae54cb4defd3900
echo x - nagios-snmp-plugins-extras/distinfo
sed 's/^X//' >nagios-snmp-plugins-extras/distinfo << '9e6970d2ce65b0da39924a3231babdc2'
XMD5 (nagios-snmp-plugins-extras-1.1.2.tar.gz) = da90e6f07196e5f79ce4bb69e5b24fb4
XSHA256 (nagios-snmp-plugins-extras-1.1.2.tar.gz) = 66354a29c960b49269319457a7bca12a691bd73b236d7421376d2c220374eff7
XSIZE (nagios-snmp-plugins-extras-1.1.2.tar.gz) = 102348
9e6970d2ce65b0da39924a3231babdc2
echo x - nagios-snmp-plugins-extras/Makefile
sed 's/^X//' >nagios-snmp-plugins-extras/Makefile << 'b99547806f554d4fffa441706c98669d'
X# New ports collection makefile for: nagios-snmp-plugins-extras
X# Date created: Sat 13 Jun 2009
X# Whom: Alexey V. Degtyarev
X#
X# $FreeBSD$
X#
X
XPORTNAME= nagios-snmp-plugins-extras
XPORTVERSION= 1.1.2
XCATEGORIES= net-mgmt
XMASTER_SITES= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
X
XMAINTAINER= alexey at renatasystems.org
XCOMMENT= A set of Nagios plugins written in Perl to check devices with SNMP
X
XNO_BUILD= yes
XUSE_PERL_RUN= yes
X
XRUN_DEPENDS+= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP \
X p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
X ${LOCALBASE}/libexec/nagios/utils.pm:${PORTSDIR}/net-mgmt/nagios-plugins
X
XPLUGINS= \
X check_snmp_boostedge.pl \
X check_snmp_cpfw.pl \
X check_snmp_css.pl \
X check_snmp_css_main.pl \
X check_snmp_env.pl \
X check_snmp_int.pl \
X check_snmp_linkproof_nhr.pl \
X check_snmp_load.pl \
X check_snmp_mem.pl \
X check_snmp_nsbox.pl \
X check_snmp_process.pl \
X check_snmp_storage.pl \
X check_snmp_vrrp.pl \
X check_snmp_win.pl \
X
XPLIST_FILES= ${PLUGINS:S,^,libexec/nagios/,}
X
XWRKSRC= ${WRKDIR}/plugins
X
Xpost-extract:
X ${SED} -i "" -e "s#/tmp/#/var/tmp/#" \
X -e "s#/usr/local/nagios/libexec#${LOCALBASE}/libexec/nagios#" \
X ${PLUGINS:S,^,${WRKSRC}/,}
X
Xdo-install:
X ${MKDIR} ${PREFIX}/libexec/nagios
X ${INSTALL_SCRIPT} ${PLUGINS:S,^,${WRKSRC}/,} ${PREFIX}/libexec/nagios/
X
X.include <bsd.port.mk>
b99547806f554d4fffa441706c98669d
echo x - nagios-snmp-plugins-extras/pkg-plist
sed 's/^X//' >nagios-snmp-plugins-extras/pkg-plist << '93e8f2a1be63934f5fe6397b5c1ca661'
X at dirrmtry libexec/nagios
93e8f2a1be63934f5fe6397b5c1ca661
exit
--- nagios-snmp-plugins-extras.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list