summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/events.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-26 13:28:43 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-26 13:28:43 +0000
commit84b76acee504a3160ab2b568ab7517aedc8e5eb5 (patch)
tree56b02f3a783860393fe18603104c71b8070f875e /frontends/php/include/events.inc.php
parent45dd16822e8717f9685eb05ec2d6f7c5c43f1e3a (diff)
downloadzabbix-84b76acee504a3160ab2b568ab7517aedc8e5eb5.tar.gz
zabbix-84b76acee504a3160ab2b568ab7517aedc8e5eb5.tar.xz
zabbix-84b76acee504a3160ab2b568ab7517aedc8e5eb5.zip
- support of multiple actions per set of conidtions (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3927 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/events.inc.php')
-rw-r--r--frontends/php/include/events.inc.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/frontends/php/include/events.inc.php b/frontends/php/include/events.inc.php
index a18968f7..d5fc0592 100644
--- a/frontends/php/include/events.inc.php
+++ b/frontends/php/include/events.inc.php
@@ -19,8 +19,17 @@
**/
?>
<?php
+ function event_source2str($sourceid)
+ {
+ switch($sourceid)
+ {
+ case EVENT_SOURCE_TRIGGERS: return S_TRIGGERS;
+ case EVENT_SOURCE_DISCOVERY: return S_DISCOVERY;
+ default: return S_UNKNOWN;
+ }
+ }
- function get_history_of_triggers_events($start,$num, $groupid=0, $hostid=0, $nodeid=null)
+ function get_history_of_triggers_events($start,$num, $groupid=0, $hostid=0, $nodeid=null)
{
global $ZBX_CURNODEID;
global $USER_DETAILS;
@@ -90,7 +99,7 @@
return $table;
}
- function get_history_of_discovery_events($start,$num,$nodeid=null)
+ function get_history_of_discovery_events($start,$num,$nodeid=null)
{
global $ZBX_CURNODEID;
global $USER_DETAILS;