diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-14 12:43:04 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-04-14 12:43:04 +0000 |
| commit | 85eb904a1fd41b28292bc5bdb033ee568a7389b8 (patch) | |
| tree | aaecb58771482c2a99519af4913ca266852975b9 /frontends/php/include/actions.inc.php | |
| parent | 819de36831781bda2871ad2413da78bcd7362cc0 (diff) | |
| download | zabbix-85eb904a1fd41b28292bc5bdb033ee568a7389b8.tar.gz zabbix-85eb904a1fd41b28292bc5bdb033ee568a7389b8.tar.xz zabbix-85eb904a1fd41b28292bc5bdb033ee568a7389b8.zip | |
- added uptime/downtime action condition for discovery
git-svn-id: svn://svn.zabbix.com/trunk@4013 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/actions.inc.php')
| -rw-r--r-- | frontends/php/include/actions.inc.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/frontends/php/include/actions.inc.php b/frontends/php/include/actions.inc.php index cc2757a1..1a783696 100644 --- a/frontends/php/include/actions.inc.php +++ b/frontends/php/include/actions.inc.php @@ -323,6 +323,7 @@ include_once 'include/discovery.inc.php'; $str_type[CONDITION_TYPE_DSERVICE_TYPE] = S_SERVICE_TYPE; $str_type[CONDITION_TYPE_DSERVICE_PORT] = S_SERVICE_PORT; $str_type[CONDITION_TYPE_DSTATUS] = S_DISCOVERY_STATUS; + $str_type[CONDITION_TYPE_DUPTIME] = S_UPTIME_DOWNTIME; if(isset($str_type[$conditiontype])) return $str_type[$conditiontype]; @@ -369,6 +370,9 @@ include_once 'include/discovery.inc.php'; case CONDITION_TYPE_DSTATUS: $str_val = discovery_object_status2str($value); break; + case CONDITION_TYPE_DUPTIME: + $str_val = $value; + break; default: return S_UNKNOWN; break; @@ -471,7 +475,8 @@ include_once 'include/discovery.inc.php'; CONDITION_TYPE_DHOST_IP, CONDITION_TYPE_DSERVICE_TYPE, CONDITION_TYPE_DSERVICE_PORT, - CONDITION_TYPE_DSTATUS + CONDITION_TYPE_DSTATUS, + CONDITION_TYPE_DUPTIME ); if(isset($conditions[$eventsource])) @@ -565,6 +570,10 @@ include_once 'include/discovery.inc.php'; $operators[CONDITION_TYPE_DSTATUS] = array( CONDITION_OPERATOR_EQUAL, ); + $operators[CONDITION_TYPE_DUPTIME] = array( + CONDITION_OPERATOR_MORE_EQUAL, + CONDITION_OPERATOR_LESS_EQUAL + ); if(isset($operators[$conditiontype])) return $operators[$conditiontype]; @@ -647,6 +656,7 @@ include_once 'include/discovery.inc.php'; case CONDITION_TYPE_TRIGGER_NAME: case CONDITION_TYPE_TRIGGER_VALUE: case CONDITION_TYPE_TRIGGER_SEVERITY: + case CONDITION_TYPE_DUPTIME: break; default: error(S_INCORRECT_CONDITION_TYPE); |
