aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2011-05-29 01:45:26 +0000
committerWesley Shields <wxs@FreeBSD.org>2011-05-29 01:45:26 +0000
commitf509d17ab40b7cc3d96966976f939e406dd65bc2 (patch)
tree4afa645653a8e914e87667e472736943a5286b17 /net-mgmt
parentdc179b2937b9cbc51e57c1eb523fba46345ff04a (diff)
downloadports-f509d17ab40b7cc3d96966976f939e406dd65bc2.tar.gz
ports-f509d17ab40b7cc3d96966976f939e406dd65bc2.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/nagios-check_mysql_slave/Makefile38
-rw-r--r--net-mgmt/nagios-check_mysql_slave/distinfo2
-rw-r--r--net-mgmt/nagios-check_mysql_slave/pkg-descr5
-rw-r--r--net-mgmt/nagios-check_mysql_slave/pkg-plist6
5 files changed, 52 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index 9aef41e56a7a..efd4e352b985 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -120,6 +120,7 @@
SUBDIR += nagios-check_ice
SUBDIR += nagios-check_kumofs
SUBDIR += nagios-check_memcached_paranoid
+ SUBDIR += nagios-check_mysql_slave
SUBDIR += nagios-check_nick
SUBDIR += nagios-check_ports
SUBDIR += nagios-check_puppet
diff --git a/net-mgmt/nagios-check_mysql_slave/Makefile b/net-mgmt/nagios-check_mysql_slave/Makefile
new file mode 100644
index 000000000000..03ec343a774e
--- /dev/null
+++ b/net-mgmt/nagios-check_mysql_slave/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: nagios-check_mysql_slave
+# Date created: 15 May 2011
+# Whom: Ryan Steinmetz
+#
+# $FreeBSD$
+
+PORTNAME= check_mysql_slave
+PORTVERSION= 0.1.1
+CATEGORIES= net-mgmt
+MASTER_SITES= http://buhacoff.net/2009/products/check_mysql_slave/archive/ \
+ http://people.rit.edu/rpsfa/
+PKGNAMEPREFIX= nagios-
+
+MAINTAINER= rpsfa@rit.edu
+COMMENT= Nagios Plugin to monitor MySQL replication on a slave
+
+RUN_DEPENDS= p5-DBI>=1.60.7:${PORTSDIR}/databases/p5-DBI \
+ p5-DBD-mysql>0:${PORTSDIR}/databases/p5-DBD-mysql
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+NO_BUILD= yes
+USE_PERL5_RUN= yes
+DOC_FILES= check_mysql_slave.html check_mysql_slave.pod
+
+do-install:
+ @${MKDIR} ${PREFIX}/libexec/nagios
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_mysql_slave ${PREFIX}/libexec/nagios/
+ ${INSTALL_SCRIPT} ${WRKSRC}/check_mysql_slave_epn ${PREFIX}/libexec/nagios/
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/nagios-check_mysql_slave/distinfo b/net-mgmt/nagios-check_mysql_slave/distinfo
new file mode 100644
index 000000000000..89db65da3a75
--- /dev/null
+++ b/net-mgmt/nagios-check_mysql_slave/distinfo
@@ -0,0 +1,2 @@
+SHA256 (check_mysql_slave-0.1.1.tar.gz) = 9a757866437c29139c4061f628efdc236dfc47b4d3db80759c2fa2d032f41944
+SIZE (check_mysql_slave-0.1.1.tar.gz) = 13711
diff --git a/net-mgmt/nagios-check_mysql_slave/pkg-descr b/net-mgmt/nagios-check_mysql_slave/pkg-descr
new file mode 100644
index 000000000000..291f428cd257
--- /dev/null
+++ b/net-mgmt/nagios-check_mysql_slave/pkg-descr
@@ -0,0 +1,5 @@
+The check_mysql_slave plugin allows you to check that a particular
+MySQL replication slave is running and (coming soon) is within a
+threshold bytes or seconds behind its master.
+
+WWW: http://buhacoff.net/software/check_mysql_slave
diff --git a/net-mgmt/nagios-check_mysql_slave/pkg-plist b/net-mgmt/nagios-check_mysql_slave/pkg-plist
new file mode 100644
index 000000000000..81e09a80b99c
--- /dev/null
+++ b/net-mgmt/nagios-check_mysql_slave/pkg-plist
@@ -0,0 +1,6 @@
+libexec/nagios/check_mysql_slave
+libexec/nagios/check_mysql_slave_epn
+%%PORTDOCS%%%%DOCSDIR%%/check_mysql_slave.html
+%%PORTDOCS%%%%DOCSDIR%%/check_mysql_slave.pod
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry libexec/nagios