aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2004-07-22 06:34:59 +0000
committerBruce M Simpson <bms@FreeBSD.org>2004-07-22 06:34:59 +0000
commitbb939b0cacd316764e66a6fb7e331fb2f353dd97 (patch)
treeabf626e6897ceb715270fe8de3386c62e5c9c229 /net-mgmt
parent7faaf89b55e684a26255c46a0df3e9a3aa571d2a (diff)
downloadports-bb939b0cacd316764e66a6fb7e331fb2f353dd97.tar.gz
ports-bb939b0cacd316764e66a6fb7e331fb2f353dd97.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/nagios-silfreed-plugins/Makefile107
-rw-r--r--net-mgmt/nagios-silfreed-plugins/distinfo16
-rw-r--r--net-mgmt/nagios-silfreed-plugins/pkg-descr15
-rw-r--r--net-mgmt/nagios-silfreed-plugins/pkg-plist24
5 files changed, 163 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index 6a0fbc040aa7..43a07e269328 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -70,6 +70,7 @@
SUBDIR += mrtg
SUBDIR += nagios
SUBDIR += nagios-plugins
+ SUBDIR += nagios-silfreed-plugins
SUBDIR += nagios-snmp-plugins
SUBDIR += nagiostat
SUBDIR += nat
diff --git a/net-mgmt/nagios-silfreed-plugins/Makefile b/net-mgmt/nagios-silfreed-plugins/Makefile
new file mode 100644
index 000000000000..40d8d5738abb
--- /dev/null
+++ b/net-mgmt/nagios-silfreed-plugins/Makefile
@@ -0,0 +1,107 @@
+# New ports collection makefile for: nagios-silfreed-plugins
+# Date created: 22 Jul 2004
+# Whom: Bruce M Simpson <bms@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= nagios-silfreed-plugins
+PORTVERSION= 1.0
+CATEGORIES= net-mgmt
+MASTER_SITES= http://www.silfreed.net/download/progs/nagios/
+DISTFILES= check_snmp_counter-0.5.0.tar.gz \
+ check_snmp_gauge-0.3.0.tar.gz \
+ check_snmp_if-0.3.5.tar.gz \
+ check_snmp_if_max-0.3.0.tar.gz \
+ check_tcping-0.1.5.tar.gz \
+ dns_delegation-0.1.0.tar.gz
+.if defined(WITH_EXPECT_TOOLS)
+DISTFILES+= check_max_clients_route-0.1.6.tar.gz \
+ check_pm3_clients_route-0.1.0.tar.gz
+.endif
+DIST_SUBDIR= ${PORTNAME}
+
+MAINTAINER= bms@FreeBSD.org
+COMMENT= Additional SNMP plugins for Nagios from silfreed.net
+
+.include <bsd.port.pre.mk>
+
+# Also uses traceroute, dig at runtime (in base system with hardcoded paths).
+RUN_DEPENDS+= \
+ ${LOCALBASE}/libexec/nagios:${PORTSDIR}/net-mgmt/nagios-plugins \
+ ${SITE_PERL}/Net/Netmask.pm:${PORTSDIR}:net-mgmt/p5-Net-Netmask \
+ ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}:net-mgmt/p5-Net-SNMP
+.if defined(WITH_EXPECT_TOOLS)
+RUN_DEPENDS+= \
+ ${LOCALBASE}/bin/expect:${PORTSDIR}/lang/expect
+.endif
+
+USE_PERL5= yes
+NO_WRKSUBDIR= yes
+
+# XXX: Strictly speaking this shouldn't obey ${PREFIX}, as it has to be
+# installed to the same location as the Nagios plugins themselves.
+NAGIOS_PLUGIN_DIR= ${LOCALBASE}/libexec/nagios
+
+pre-everything::
+.if !defined(WITH_EXPECT_TOOLS)
+ @${ECHO_MSG} "${PORTNAME} has the following tunable option(s):"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "WITH_EXPECT_TOOLS=yes Installs additional plugins"
+ @${ECHO_MSG} " which require lang/expect"
+ @${ECHO_MSG} ""
+.endif
+
+do-build:
+ ( cd ${WRKSRC}/check_tcping-0.1.5 ; \
+ ${CC} ${CFLAGS} -o check_tcping check_tcping.c )
+
+# Documentation
+PLUGIN_README_DIRS= \
+ check_snmp_counter-0.5.0 \
+ check_snmp_gauge-0.3.0 \
+ check_snmp_if-0.3.5 \
+ check_snmp_if_max-0.3.0 \
+ check_tcping-0.1.5 \
+ dns_delegation-0.1.0
+
+.if defined(WITH_EXPECT_TOOLS)
+PLUGIN_README_DIRS+= \
+ check_max_clients_route-0.1.6 \
+ check_pm3_clients_route-0.1.0
+
+CHECKMAXCLIENTS_SCRIPTS= check_max_clients_route iproutecheck.pm \
+ tnt tnt.exp
+CHECKPM3CLIENTS_SCRIPTS= check_pm3_clients_route pm3 pm3.exp
+
+PLIST_SUB+= EXPECTTOOLS=""
+.else
+PLIST_SUB+= EXPECTTOOLS="@comment "
+.endif
+
+do-install:
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_snmp_counter-0.5.0/check_snmp_counter ${NAGIOS_PLUGIN_DIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_snmp_gauge-0.3.0/check_snmp_gauge ${NAGIOS_PLUGIN_DIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_snmp_if-0.3.5/check_snmp_if ${NAGIOS_PLUGIN_DIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_snmp_if-0.3.5/gen_check_snmp_if_services ${NAGIOS_PLUGIN_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/check_snmp_if-0.3.5/services-check_snmp_if.template ${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_snmp_if_max-0.3.0/check_snmp_if_max ${NAGIOS_PLUGIN_DIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_snmp_if_max-0.3.0/gen_check_snmp_if_max_services ${NAGIOS_PLUGIN_DIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/check_tcping-0.1.5/check_tcping ${NAGIOS_PLUGIN_DIR}
+.if defined(WITH_EXPECT_TOOLS)
+.for i in ${CHECKMAXCLIENTS_SCRIPTS}
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_max_clients_route-0.1.6/${i} ${NAGIOS_PLUGIN_DIR}
+.endfor
+.for i in ${CHECKPM3CLIENTS_SCRIPTS}
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_pm3_clients_route-0.1.0/${i} ${NAGIOS_PLUGIN_DIR} )
+.endfor
+.endif
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for i in ${PLUGIN_README_DIRS}
+ ${INSTALL_DATA} ${WRKSRC}/${i}/README ${DOCSDIR}/${i}.README
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-mgmt/nagios-silfreed-plugins/distinfo b/net-mgmt/nagios-silfreed-plugins/distinfo
new file mode 100644
index 000000000000..4e11ec7a1d24
--- /dev/null
+++ b/net-mgmt/nagios-silfreed-plugins/distinfo
@@ -0,0 +1,16 @@
+MD5 (nagios-silfreed-plugins/check_max_clients_route-0.1.6.tar.gz) = 8d80ca65c5004b9b5f9774a2bcd87d2a
+SIZE (nagios-silfreed-plugins/check_max_clients_route-0.1.6.tar.gz) = 2832
+MD5 (nagios-silfreed-plugins/check_pm3_clients_route-0.1.0.tar.gz) = f9c6f9fd51a5529609d3a4c362a7584e
+SIZE (nagios-silfreed-plugins/check_pm3_clients_route-0.1.0.tar.gz) = 2890
+MD5 (nagios-silfreed-plugins/check_snmp_counter-0.5.0.tar.gz) = 1f89fd6be44daf4b2eea87dc8b68bd2e
+SIZE (nagios-silfreed-plugins/check_snmp_counter-0.5.0.tar.gz) = 4127
+MD5 (nagios-silfreed-plugins/check_snmp_gauge-0.3.0.tar.gz) = b016e9557413e20e0e270320e2734b53
+SIZE (nagios-silfreed-plugins/check_snmp_gauge-0.3.0.tar.gz) = 2743
+MD5 (nagios-silfreed-plugins/check_snmp_if-0.3.5.tar.gz) = 96f05181186260721e1da73fa25df979
+SIZE (nagios-silfreed-plugins/check_snmp_if-0.3.5.tar.gz) = 3624
+MD5 (nagios-silfreed-plugins/check_snmp_if_max-0.3.0.tar.gz) = 35d242ebb47e65b6a9bac438ecb0a2a5
+SIZE (nagios-silfreed-plugins/check_snmp_if_max-0.3.0.tar.gz) = 3916
+MD5 (nagios-silfreed-plugins/check_tcping-0.1.5.tar.gz) = 597e408c6b1421b8de97d05f0c0ad0c7
+SIZE (nagios-silfreed-plugins/check_tcping-0.1.5.tar.gz) = 3201
+MD5 (nagios-silfreed-plugins/dns_delegation-0.1.0.tar.gz) = 5d435de772cf1729f5f9a9a3254f8113
+SIZE (nagios-silfreed-plugins/dns_delegation-0.1.0.tar.gz) = 2478
diff --git a/net-mgmt/nagios-silfreed-plugins/pkg-descr b/net-mgmt/nagios-silfreed-plugins/pkg-descr
new file mode 100644
index 000000000000..823433595c96
--- /dev/null
+++ b/net-mgmt/nagios-silfreed-plugins/pkg-descr
@@ -0,0 +1,15 @@
+This is a [meta-]port of the Nagios plugins found at silfreed.net.
+
+These are useful for those individuals wishing to monitor network device
+health via SNMP, using Nagios, and to generate alerts accordingly. When
+used with Nagiostat, RRDTool-based graphs can be generated from within
+the Nagios monitoring framework, much like Cricket.
+
+It includes the following checks: check_max_clients_route,
+check_pm3_clients_route, check_snmp_counter, check_snmp_gauge,
+check_snmp_if, check_snmp_if_max, check_tcping, and dns_delegation.
+
+WWW: http://www.silfreed.net/download/progs/nagios/
+
+Bruce
+bms@FreeBSD.org
diff --git a/net-mgmt/nagios-silfreed-plugins/pkg-plist b/net-mgmt/nagios-silfreed-plugins/pkg-plist
new file mode 100644
index 000000000000..65c433521871
--- /dev/null
+++ b/net-mgmt/nagios-silfreed-plugins/pkg-plist
@@ -0,0 +1,24 @@
+libexec/nagios/check_snmp_counter
+libexec/nagios/check_snmp_gauge
+libexec/nagios/check_snmp_if
+libexec/nagios/check_snmp_if_max
+libexec/nagios/check_tcping
+libexec/nagios/gen_check_snmp_if_max_services
+libexec/nagios/gen_check_snmp_if_services
+%%EXPECTTOOLS%%libexec/nagios/check_max_clients_route
+%%EXPECTTOOLS%%libexec/nagios/check_pm3_clients_route
+%%EXPECTTOOLS%%libexec/nagios/iproutecheck.pm
+%%EXPECTTOOLS%%libexec/nagios/pm3
+%%EXPECTTOOLS%%libexec/nagios/pm3.exp
+%%EXPECTTOOLS%%libexec/nagios/tnt
+%%EXPECTTOOLS%%libexec/nagios/tnt.exp
+%%EXAMPLESDIR%%/services-check_snmp_if.template
+%%PORTDOCS%%%%DOCSDIR%%/check_snmp_counter-0.5.0.README
+%%PORTDOCS%%%%DOCSDIR%%/check_snmp_gauge-0.3.0.README
+%%PORTDOCS%%%%DOCSDIR%%/check_snmp_if-0.3.5.README
+%%PORTDOCS%%%%DOCSDIR%%/check_snmp_if_max-0.3.0.README
+%%PORTDOCS%%%%DOCSDIR%%/check_tcping-0.1.5.README
+%%PORTDOCS%%%%DOCSDIR%%/dns_delegation-0.1.0.README
+%%EXPECTTOOLS%%%%PORTDOCS%%%%DOCSDIR%%/check_max_clients_route-0.1.6.README
+%%EXPECTTOOLS%%%%PORTDOCS%%%%DOCSDIR%%/check_pm3_clients_route-0.1.0.README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%