From 2f3b601053a32a649489ac6ebd8ec0c9a8333513 Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Sun, 21 Feb 2010 01:29:47 +0000 Subject: [PATCH] - BUGFIX: Ignored interfaces should not be in the alerts. git-svn-id: http://www.observium.org/svn/observer/trunk@898 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/print-menubar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index 0c2587ba6..98c296bfe 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -12,7 +12,7 @@ $this_alert = 0; if ($device['status'] == 0 && $device['ignore'] == '0') { $this_alert = "1"; } elseif ($device['ignore'] == '0') { if (mysql_result(mysql_query("SELECT count(service_id) FROM services WHERE service_status = '0' AND service_host = '".$device['device_id']."'"),0)) { $this_alert = "1"; } - if (mysql_result(mysql_query("SELECT count(*) FROM ports WHERE `ifOperStatus` = 'down' AND `ifAdminStatus` = 'up' AND device_id = '" . $device['device_id'] . "'"),0)) { $this_alert = "1"; } + if (mysql_result(mysql_query("SELECT count(*) FROM ports WHERE `ifOperStatus` = 'down' AND `ifAdminStatus` = 'up' AND device_id = '" . $device['device_id'] . "' AND `ignore` = '0'"),0)) { $this_alert = "1";} } if ($this_alert) { $device_alerts++;