Merge pull request #1386 from spinza/checkmysql

Accept MySQL OK as the service active.
This commit is contained in:
Neil Lathwood
2015-07-05 19:51:30 +01:00
+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';