diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2004-07-19 12:13:45 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2004-07-19 12:13:45 +0000 |
commit | f7afd26d09f2fd232ef4eadc6fe9a607817e44c3 (patch) | |
tree | 862b47171a30fdea18967a7ce3dd89db72f587f6 /net-mgmt/nagios-snmp-plugins | |
parent | 2af6a1ae383d1de0819d37c1d5ffcb02f411d864 (diff) |
Notes
Diffstat (limited to 'net-mgmt/nagios-snmp-plugins')
-rw-r--r-- | net-mgmt/nagios-snmp-plugins/Makefile | 57 | ||||
-rw-r--r-- | net-mgmt/nagios-snmp-plugins/distinfo | 2 | ||||
-rw-r--r-- | net-mgmt/nagios-snmp-plugins/pkg-descr | 8 | ||||
-rw-r--r-- | net-mgmt/nagios-snmp-plugins/pkg-plist | 4 |
4 files changed, 71 insertions, 0 deletions
diff --git a/net-mgmt/nagios-snmp-plugins/Makefile b/net-mgmt/nagios-snmp-plugins/Makefile new file mode 100644 index 000000000000..921f454ce523 --- /dev/null +++ b/net-mgmt/nagios-snmp-plugins/Makefile @@ -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> diff --git a/net-mgmt/nagios-snmp-plugins/distinfo b/net-mgmt/nagios-snmp-plugins/distinfo new file mode 100644 index 000000000000..60fc0481ac17 --- /dev/null +++ b/net-mgmt/nagios-snmp-plugins/distinfo @@ -0,0 +1,2 @@ +MD5 (nagios-snmp-plugins-1.0.tar.gz) = cf70e405718d016debe206d01f54262c +SIZE (nagios-snmp-plugins-1.0.tar.gz) = 14793 diff --git a/net-mgmt/nagios-snmp-plugins/pkg-descr b/net-mgmt/nagios-snmp-plugins/pkg-descr new file mode 100644 index 000000000000..22a8678daab9 --- /dev/null +++ b/net-mgmt/nagios-snmp-plugins/pkg-descr @@ -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 diff --git a/net-mgmt/nagios-snmp-plugins/pkg-plist b/net-mgmt/nagios-snmp-plugins/pkg-plist new file mode 100644 index 000000000000..79e4d3226786 --- /dev/null +++ b/net-mgmt/nagios-snmp-plugins/pkg-plist @@ -0,0 +1,4 @@ +libexec/nagios/check_snmp_disk +libexec/nagios/check_snmp_proc +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% |