summaryrefslogtreecommitdiffstats
path: root/frontends/php/events.php
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-27 09:26:12 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-27 09:26:12 +0000
commit70f35ff303e4c22ff4e38d42953f2008f10824da (patch)
treed838dc5ad1254e9847627c5491c1bd24d9e6a5ec /frontends/php/events.php
parent0ee1e17fdd240f0121f7eed9bd26959910075569 (diff)
downloadzabbix-70f35ff303e4c22ff4e38d42953f2008f10824da.tar.gz
zabbix-70f35ff303e4c22ff4e38d42953f2008f10824da.tar.xz
zabbix-70f35ff303e4c22ff4e38d42953f2008f10824da.zip
- [DEV-173] added support of notification escalations on server side
git-svn-id: svn://svn.zabbix.com/trunk@5727 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/events.php')
-rw-r--r--frontends/php/events.php7
1 files changed, 5 insertions, 2 deletions
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');
}