[Nagiosplug-devel] check_mysql_replication program

Dave Viner dviner at yahoo-inc.com
Wed Dec 18 16:21:02 CET 2002


Hi,
	I took a look at the check_mysqlslave.pl script that's posted in
Sourceforge.  I think this C program has several important differences.
First, it checks both MySQL v3 and v4 replication.  Second, it checks that
the mysql slave is up to date with relation to the master.  (The threshold
for determining "up to date" is passed as an argument.)  Third, this
check_mysql_replication is written in C and is not dependent upon the perl
installation.

	How do we choose which one (if either) get added to the distribution?


Thanks
dave


-----Original Message-----
From: nagiosplug-devel-admin at lists.sourceforge.net
[mailto:nagiosplug-devel-admin at lists.sourceforge.net]On Behalf Of Dave
Viner
Sent: Monday, December 16, 2002 8:34 PM
To: nagiosplug-devel at lists.sourceforge.net
Subject: [Nagiosplug-devel] check_mysql_replication program


Here's a little plugin that checks the status of MySQL replication between a
master and a slave MySQL db.  I've tried it with both version 3 and version
4 instances of MySQL, and as far as I can tell it works properly.  I'm
attaching the code itself, and the patch file which adds it to the
configure.in and the plugins/Makefile.am.

Please let me know what you think of it.  I think its pretty cool and
useful, especially since the current check_mysql doesn't handle replication.

What do you think ?

Thanks
Dave Viner





More information about the Devel mailing list