summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2015-09-25 13:18:45 +0000
committermanu <manu@pkgsrc.org>2015-09-25 13:18:45 +0000
commit0f9af38e3ff2073ba99d56de48daac5f1a185e52 (patch)
tree7ae88d9e8240771150beb8815d35f95127fcd2b1 /net
parent6b2927828ce0ff385e2e7d9799d2617576080764 (diff)
downloadpkgsrc-0f9af38e3ff2073ba99d56de48daac5f1a185e52.tar.gz
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.
Diffstat (limited to 'net')
-rw-r--r--net/nagios-plugin-mysqlslave/DESCR3
-rw-r--r--net/nagios-plugin-mysqlslave/Makefile28
-rw-r--r--net/nagios-plugin-mysqlslave/PLIST2
-rw-r--r--net/nagios-plugin-mysqlslave/distinfo5
4 files changed, 38 insertions, 0 deletions
diff --git a/net/nagios-plugin-mysqlslave/DESCR b/net/nagios-plugin-mysqlslave/DESCR
new file mode 100644
index 00000000000..b463cf2a5e4
--- /dev/null
+++ b/net/nagios-plugin-mysqlslave/DESCR
@@ -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
diff --git a/net/nagios-plugin-mysqlslave/Makefile b/net/nagios-plugin-mysqlslave/Makefile
new file mode 100644
index 00000000000..be53337e3be
--- /dev/null
+++ b/net/nagios-plugin-mysqlslave/Makefile
@@ -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"
diff --git a/net/nagios-plugin-mysqlslave/PLIST b/net/nagios-plugin-mysqlslave/PLIST
new file mode 100644
index 00000000000..e61b7f96efb
--- /dev/null
+++ b/net/nagios-plugin-mysqlslave/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2015/09/25 13:18:45 manu Exp $
+libexec/nagios/check_mysql_slave
diff --git a/net/nagios-plugin-mysqlslave/distinfo b/net/nagios-plugin-mysqlslave/distinfo
new file mode 100644
index 00000000000..050f4f93567
--- /dev/null
+++ b/net/nagios-plugin-mysqlslave/distinfo
@@ -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