When check_mysql is run with -n option it returns MySQL OK. Also accept that as an status=1 indication.

This commit is contained in:
Louis Rossouw
2015-07-05 00:47:51 +02:00
parent 7d6dbe4d9b
commit 01714ed03b
+1 -1
View File
@@ -7,7 +7,7 @@ $check = shell_exec($config['nagios_plugins'] . "/check_mysql -H ".$service['hos
list($check, $time) = split("\|", $check);
if(strstr($check, "Uptime:")) {
if(strstr($check, "Uptime:") || strstr($check, "MySQL OK")) {
$status = '1';
} else {
$status = '0';