From 70f35ff303e4c22ff4e38d42953f2008f10824da Mon Sep 17 00:00:00 2001 From: sasha Date: Tue, 27 May 2008 09:26:12 +0000 Subject: - [DEV-173] added support of notification escalations on server side git-svn-id: svn://svn.zabbix.com/trunk@5727 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/events.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'frontends/php/events.php') diff --git a/frontends/php/events.php b/frontends/php/events.php index 718f3fa9..fbc661b8 100644 --- a/frontends/php/events.php +++ b/frontends/php/events.php @@ -345,7 +345,8 @@ include_once "include/page_header.php"; $sql='SELECT COUNT(a.alertid) as cnt_all'. ' FROM alerts a '. - ' WHERE a.eventid='.$row['eventid']; + ' WHERE a.eventid='.$row['eventid']. + ' AND a.alerttype in ('.ALERT_TYPE_MESSAGE.')'; $alerts=DBfetch(DBselect($sql)); @@ -355,6 +356,7 @@ include_once "include/page_header.php"; $sql='SELECT COUNT(a.alertid) as sent '. ' FROM alerts a '. ' WHERE a.eventid='.$row['eventid']. + ' AND a.alerttype in ('.ALERT_TYPE_MESSAGE.')'. ' AND a.status='.ALERT_STATUS_SENT; $tmp=DBfetch(DBselect($sql)); @@ -364,6 +366,7 @@ include_once "include/page_header.php"; $sql='SELECT COUNT(a.alertid) as inprogress '. ' FROM alerts a '. ' WHERE a.eventid='.$row['eventid']. + ' AND a.alerttype in ('.ALERT_TYPE_MESSAGE.')'. ' AND a.status='.ALERT_STATUS_NOT_SENT; $tmp=DBfetch(DBselect($sql)); @@ -372,13 +375,13 @@ include_once "include/page_header.php"; $sql='SELECT COUNT(a.alertid) as failed '. ' FROM alerts a '. ' WHERE a.eventid='.$row['eventid']. + ' AND a.alerttype in ('.ALERT_TYPE_MESSAGE.')'. ' AND a.status='.ALERT_STATUS_FAILED; $tmp=DBfetch(DBselect($sql)); $alerts['failed'] = $tmp['failed']; $mixed+=($alerts['failed'])?ALERT_STATUS_FAILED:0; - if($alerts['inprogress']){ $status = new CSpan(S_IN_PROGRESS,'orange'); } -- cgit