Add nagios-plugin-mysqlslave

This plugin monitors MySQL/MariaDB master/slave replication and
fires alerts when the slave gets out of sync with the master.
This commit is contained in:
manu 2015-09-25 13:18:45 +00:00
parent 724f530058
commit c01af58cbc
4 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,3 @@
$NetBSD: DESCR,v 1.1 2015/09/25 13:18:45 manu Exp $
This Nagios plugin monitors MySQL/MariaDB replication slave status

View file

@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.1 2015/09/25 13:18:45 manu Exp $
#
PKGNAME= nagios-plugin-mysqlslave-${DISTNAME:C/.*-//}
DISTNAME= check_mysql_slave-0.1
CATEGORIES= net
MASTER_SITES= http://ftp.espci.fr/pub/nagios-local/
EXTRACT_SUFX= .tgz
MAINTAINER= manu@NetBSD.org
HOMEPAGE= http://ftp.espci.fr/pub/nagios-local/
COMMENT= MySQL and MariaDB slave monitoring plugin for Nagios
LICENSE= modified-bsd
MAKE_ENV+= PREFIX=${PREFIX}
INSTALLATION_DIRS+= libexec/nagios
SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_mysql_slave \
${REAL_ROOT_USER} ${NAGIOS_GROUP} 4554
BUILD_DEFS+= ${NAGIOS_GROUP}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/check_mysql_slave \
${DESTDIR}${PREFIX}/libexec/nagios/
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2015/09/25 13:18:45 manu Exp $
libexec/nagios/check_mysql_slave

View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2015/09/25 13:18:45 manu Exp $
SHA1 (check_mysql_slave-0.1.tgz) = c119faf749949ce2dec3c978944023070f1b4c1c
RMD160 (check_mysql_slave-0.1.tgz) = 13b287b6074c8fd6d6419051cfd818da00f1911c
Size (check_mysql_slave-0.1.tgz) = 2532 bytes