summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/actions.inc.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/include/actions.inc.php
parent0ee1e17fdd240f0121f7eed9bd26959910075569 (diff)
- [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/include/actions.inc.php')
-rw-r--r--frontends/php/include/actions.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/include/actions.inc.php b/frontends/php/include/actions.inc.php
index 302d424e..97c6c6e2 100644
--- a/frontends/php/include/actions.inc.php
+++ b/frontends/php/include/actions.inc.php
@@ -798,7 +798,7 @@ include_once 'include/discovery.inc.php';
$sql = 'SELECT DISTINCT a.alertid,a.clock,mt.description,a.sendto,a.subject,a.message,a.status,a.retries,a.error '.
' FROM events e,alerts a'.
' left join media_type mt on mt.mediatypeid=a.mediatypeid'.
- ' WHERE e.eventid = a.eventid'.
+ ' WHERE e.eventid = a.eventid and alerttype in ('.ALERT_TYPE_MESSAGE.')'.
$sql_cond.
' AND '.DBcondition('e.objectid',$available_triggers).
' AND '.DBin_node('a.alertid').
@@ -872,12 +872,12 @@ function get_actions_for_event($eventid){
$result=DBselect('SELECT DISTINCT a.alertid,a.clock,mt.description,a.sendto,a.subject,a.message,a.status,a.retries,a.error '.
' FROM events e,alerts a'.
' left join media_type mt on mt.mediatypeid=a.mediatypeid'.
- ' WHERE a.eventid='.$eventid.
+ ' WHERE a.eventid='.$eventid.' and alerttype in ('.ALERT_TYPE_MESSAGE.')'.
' AND e.eventid = a.eventid'.
' AND '.DBcondition('e.objectid',$available_triggers).
' AND '.DBin_node('a.alertid').
order_by('a.clock,a.alertid,mt.description,a.sendto,a.status,a.retries'));
-
+
while($row=DBfetch($result)){
$time=date("Y.M.d H:i:s",$row["clock"]);
@@ -934,7 +934,7 @@ function get_actions_hint_by_eventid($eventid,$status=NULL){
$sql = 'SELECT DISTINCT a.alertid,mt.description,a.sendto,a.status,u.alias '.
' FROM events e,users u,alerts a'.
' left join media_type mt on mt.mediatypeid=a.mediatypeid'.
- ' WHERE a.eventid='.$eventid.
+ ' WHERE a.eventid='.$eventid.' and alerttype in ('.ALERT_TYPE_MESSAGE.')'.
(is_null($status)?'':' AND a.status='.$status).
' AND e.eventid = a.eventid'.
' AND '.DBcondition('e.objectid',$available_triggers).
@@ -942,7 +942,7 @@ function get_actions_hint_by_eventid($eventid,$status=NULL){
' AND u.userid=a.userid '.
' ORDER BY mt.description';
$result=DBselect($sql);
-
+
while($row=DBfetch($result)){
if($row["status"] == ALERT_STATUS_SENT){