1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

Add new port nagios-snmp-plugins, which contains plugins to monitor

disk and cpu usage remotely via SNMP, using the UCD-SNMP-MIB
dskTable and prTable entitites.
This commit is contained in:
Bruce M Simpson 2004-07-19 12:13:45 +00:00
parent 2af6a1ae38
commit f7afd26d09
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114198
5 changed files with 72 additions and 0 deletions

View File

@ -70,6 +70,7 @@
SUBDIR += mrtg SUBDIR += mrtg
SUBDIR += nagios SUBDIR += nagios
SUBDIR += nagios-plugins SUBDIR += nagios-plugins
SUBDIR += nagios-snmp-plugins
SUBDIR += nat SUBDIR += nat
SUBDIR += nbtscan SUBDIR += nbtscan
SUBDIR += nefu SUBDIR += nefu

View File

@ -0,0 +1,57 @@
# New ports collection makefile for: nagios-snmp-plugins
# Date created: 19 Jul 2004
# Whom: Bruce M Simpson <bms@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nagios-snmp-plugins
PORTVERSION= 1.0
CATEGORIES= net-mgmt
MASTER_SITES= ftp://ftp.hometree.net/pub/${PORTNAME}/
MAINTAINER= bms@spc.org
COMMENT= Additional SNMP plugins for Nagios
LIB_DEPENDS= netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp
GNU_CONFIGURE= yes
USE_AUTOMAKE_VER= 14
USE_AUTOCONF_VER= 213
USE_AUTOHEADER_VER= 213
USE_GETOPT_LONG= yes
USE_GMAKE= yes
USE_PERL5= yes
NAGIOS_PLUGIN_DIR= ${PREFIX}/libexec/nagios
AUTOMAKE_ARGS= --add-missing
CONFIGURE_ARGS= --sbindir=${PREFIX}/share/nagios/cgi-bin \
--libexecdir=${NAGIOS_PLUGIN_DIR} \
--datadir=${PREFIX}/share/nagios \
--sysconfdir=${PREFIX}/etc/nagios \
--localstatedir=/var/spool/nagios \
--with-snmp=${PREFIX}
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
# Workaround configure.in lameness.
CONFIGURE_ENV+= CPPFLAGS="`net-snmp-config --cflags`"
pre-configure:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} \
--acdir=${ACLOCAL_DIR})
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOMAKE_ENV} ${AUTOHEADER})
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOMAKE_ENV} ${AUTOMAKE} \
${AUTOMAKE_ARGS})
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOMAKE_ENV} ${AUTOCONF} \
${AUTOCONF_ARGS})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_disk ${NAGIOS_PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_proc ${NAGIOS_PLUGIN_DIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
MD5 (nagios-snmp-plugins-1.0.tar.gz) = cf70e405718d016debe206d01f54262c
SIZE (nagios-snmp-plugins-1.0.tar.gz) = 14793

View File

@ -0,0 +1,8 @@
This is an additional plugin package for Nagios, for SNMP support.
It utilizes the UCD-SNMP-MIB dskTable and prTable support to monitor
CPU and disk usage according to local snmpd configuration.
WWW: ftp://ftp.hometree.net/pub/nagios-snmp-plugins/index.html
Bruce
bms@FreeBSD.org

View File

@ -0,0 +1,4 @@
libexec/nagios/check_snmp_disk
libexec/nagios/check_snmp_proc
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%