-1, 'Ok (recovered)' => 0, 'Alert' => 1, // 'Acknowledged' => 2, 'Worse' => 3, 'Better' => 4, ); $alert_severities = array( // alert_rules.status is enum('ok','warning','critical') 'Any' => '', 'Ok, warning and critical' => 1, 'Warning and critical' => 2, 'Critical' => 3, 'OK' => 4, 'Warning' => 5 ); $common_output[] = '
Alert Log entries
'; if (isset($_POST['device_id'])) { $selected_device = ''; } else { $selected_device = $device_id; $_POST['device_id'] = $device_id; } if (isset($_POST['state'])) { $selected_state = ''; } else { $selected_state = ''; $_POST['state'] = -1; } if (isset($_POST['min_severity'])) { $selected_min_severity = ''; } else { $selected_min_severity = ''; $_POST['min_severity'] = ''; } $common_output[] = '
Timestamp   Device Alert
';