mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Merge pull request #1386 from spinza/checkmysql
Accept MySQL OK as the service active.
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user