Commit 5d843596 authored by mcramer's avatar mcramer
Browse files

- Excluded info state from warning in monitor app

parent b6d0a34b
......@@ -30,7 +30,7 @@ if($token == '' or $secret == '' or $token != $secret) {
$sql = 'SELECT server_id, server_name FROM server WHERE 1 ORDER BY server_id';
$records = $app->db->queryAllRecords($sql);
foreach($records as $index => $rec) {
$rec = $app->db->queryOneRecord("SELECT * FROM monitor_data WHERE server_id = " . $rec['server_id'] . " AND state NOT IN ('ok', 'no_state')");
$rec = $app->db->queryOneRecord("SELECT * FROM monitor_data WHERE server_id = " . $rec['server_id'] . " AND state NOT IN ('ok', 'no_state', 'info')");
if($rec) $records[$index]['state'] = 'warn';
else $records[$index]['state'] = 'ok';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment