check_mysql_slave: clarify message

This commit is contained in:
Cyberes 2024-08-09 15:00:13 -06:00
parent 1cd6d385ba
commit 7747961e7f
1 changed files with 2 additions and 2 deletions

View File

@ -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.')