check_mysql_slave: clarify message
This commit is contained in:
parent
1cd6d385ba
commit
7747961e7f
|
@ -90,13 +90,13 @@ def main(args):
|
||||||
exit_msg.append('Replication is delayed!')
|
exit_msg.append('Replication is delayed!')
|
||||||
elif replication_delay >= crit_deviation_max:
|
elif replication_delay >= crit_deviation_max:
|
||||||
exit_code = nagios.STATE_CRIT
|
exit_code = nagios.STATE_CRIT
|
||||||
exit_msg.append('Replication is ahead???')
|
exit_msg.append('Replication delay too short!')
|
||||||
elif replication_delay <= warn_deviation_min:
|
elif replication_delay <= warn_deviation_min:
|
||||||
exit_code = nagios.STATE_WARN
|
exit_code = nagios.STATE_WARN
|
||||||
exit_msg.append('Replication is delayed!')
|
exit_msg.append('Replication is delayed!')
|
||||||
elif replication_delay >= warn_deviation_max:
|
elif replication_delay >= warn_deviation_max:
|
||||||
exit_code = nagios.STATE_WARN
|
exit_code = nagios.STATE_WARN
|
||||||
exit_msg.append('Replication is ahead???')
|
exit_msg.append('Replication delay too short!')
|
||||||
|
|
||||||
if exit_code == nagios.STATE_OK:
|
if exit_code == nagios.STATE_OK:
|
||||||
exit_msg.append('Slave is healthy! Slave SQL: running. Slave IO: running.')
|
exit_msg.append('Slave is healthy! Slave SQL: running. Slave IO: running.')
|
||||||
|
|
Loading…
Reference in New Issue