How to get munin to alert for NaN

4

I am using this mysql slave status plugin and on the munin master I have added...

mysql_slave_status.warning 30
mysql_slave_status.critical 60

So it alerts whenever the slave gets behind the master. How do I get munin to alert me (critical alert if possible) when the plugin returns "NaN", will it do that automatically?

It returns NaN when the SQL isn't running or the connection fails.

EDIT: In the end I made it add a large number to the actual value if the connection was down.

Stephen Paulger

Posted 2012-10-09T13:21:09.900

Reputation: 197

I'm kinda surprised that munin doesn't do this automatically... – Shadow – 2017-01-16T23:24:52.137

Answers

0

Having written a bit of the mysql_ plugin I can attest to having replaced much of the single purpose plugins of munin. In the above link there is a documented example of what you want:

[mysql_replication]
env.slave_io_running_warning 0.5
env.slave_sql_running_warning 0.5
env.seconds_behind_master_warning 300
env.seconds_behind_master_critical 600

danblack

Posted 2012-10-09T13:21:09.900

Reputation: 190