Monitoring MYSQL Database replication

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Monitoring MYSQL Database replication

Post by jcamillo »

What is the best way to monitor Nagios XI database replication?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring MYSQL Database replication

Post by scottwilkerson »

Can you be a little more specific. Are you replicating your nagios database to a different machine and want to monitor that?

There are several items on the exchange for monitoring replication
http://exchange.nagios.org/index.php?op ... eplication
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Monitoring MYSQL Database replication

Post by jcamillo »

Sorry about that, I am actually monitoring MYSQL replication to the backup server.

Thank you
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring MYSQL Database replication

Post by scottwilkerson »

You could run the MySQL wizard and check the "Slave" items on the bottom of the page.

Also, you could craft a query that should yield a result and run the mysql query wizard with that query... Something like

Select the nagios database

use the following query

Code: Select all

SELECT NOW()-status_update_time FROM nagios_programstatus
the warning and critical levels will represent seconds
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked