Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 May 2011 14:52:07 GMT
From:      Ryan Steinmetz <rpsfa@rit.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/157066: [new port] net-mgmt/nagios-check_mysql_slave
Message-ID:  <201105151452.p4FEq7tj029896@red.freebsd.org>
Resent-Message-ID: <201105151500.p4FF0L71028447@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         157066
>Category:       ports
>Synopsis:       [new port] net-mgmt/nagios-check_mysql_slave
>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:   Sun May 15 15:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Steinmetz
>Release:        8.2-RELEASE
>Organization:
Rochester Institute of Technology
>Environment:
>Description:
New port net-mgmt/nagios-check_mysql_slave:

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.

This project includes:

check_mysql_slave - connects to a MySQL replication slave and checks its status
check_mysql_slave_epn - same script but modified to work with Nagios EPN
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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-check_mysql_slave
#	nagios-check_mysql_slave/Makefile
#	nagios-check_mysql_slave/distinfo
#	nagios-check_mysql_slave/pkg-descr
#	nagios-check_mysql_slave/pkg-plist
#
echo c - nagios-check_mysql_slave
mkdir -p nagios-check_mysql_slave > /dev/null 2>&1
echo x - nagios-check_mysql_slave/Makefile
sed 's/^X//' >nagios-check_mysql_slave/Makefile << 'af7984331e2f49b9730ab33d6bda18de'
X# New ports collection makefile for:	nagios-check_mysql_slave
X# Date created: 	15 May 2011
X# Whom:			Ryan Steinmetz
X#
X# $FreeBSD$
X
XPORTNAME=	check_mysql_slave
XPORTVERSION=	0.1.1
XCATEGORIES=	net-mgmt
XMASTER_SITES=	http://buhacoff.net/2009/products/check_mysql_slave/archive/ \
X		http://people.rit.edu/rpsfa/
XPKGNAMEPREFIX=	nagios-
X
XMAINTAINER=	rpsfa@rit.edu
XCOMMENT=	Nagios Plugin to monitor MySQL replication on a slave
X
XRUN_DEPENDS=	p5-DBI>=1.60.7:${PORTSDIR}/databases/p5-DBI \
X		p5-DBD-mysql>0:${PORTSDIR}/databases/p5-DBD-mysql
X
XLICENSE=	GPLv2
XLICENSE_FILE=	${WRKSRC}/LICENSE
X
XNO_BUILD=	yes
XUSE_PERL5_RUN=	yes
XDOC_FILES=	check_mysql_slave.html check_mysql_slave.pod
X
X.include <bsd.port.pre.mk>
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/libexec/nagios
X	${INSTALL_SCRIPT} ${WRKSRC}/check_mysql_slave ${PREFIX}/libexec/nagios/
X	${INSTALL_SCRIPT} ${WRKSRC}/check_mysql_slave_epn ${PREFIX}/libexec/nagios/
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for file in ${DOC_FILES}
X	@${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
af7984331e2f49b9730ab33d6bda18de
echo x - nagios-check_mysql_slave/distinfo
sed 's/^X//' >nagios-check_mysql_slave/distinfo << '29d797cfe855bbe24c20fc0fb3d5b827'
XSHA256 (check_mysql_slave-0.1.1.tar.gz) = 9a757866437c29139c4061f628efdc236dfc47b4d3db80759c2fa2d032f41944
XSIZE (check_mysql_slave-0.1.1.tar.gz) = 13711
29d797cfe855bbe24c20fc0fb3d5b827
echo x - nagios-check_mysql_slave/pkg-descr
sed 's/^X//' >nagios-check_mysql_slave/pkg-descr << 'c6880c9915816667b84d756b9e54921b'
XThe check_mysql_slave plugin allows you to check that a particular 
XMySQL replication slave is running and (coming soon) is within a 
Xthreshold bytes or seconds behind its master.
X
XWWW: http://buhacoff.net/software/check_mysql_slave
c6880c9915816667b84d756b9e54921b
echo x - nagios-check_mysql_slave/pkg-plist
sed 's/^X//' >nagios-check_mysql_slave/pkg-plist << '92c1ec662ba5650fc34b14f5d2e8962f'
Xlibexec/nagios/check_mysql_slave
Xlibexec/nagios/check_mysql_slave_epn
X%%PORTDOCS%%%%DOCSDIR%%/check_mysql_slave.html
X%%PORTDOCS%%%%DOCSDIR%%/check_mysql_slave.pod
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@dirrmtry libexec/nagios
92c1ec662ba5650fc34b14f5d2e8962f
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105151452.p4FEq7tj029896>