parent
020329d201
commit
a4731ebbb3
|
@ -121,6 +121,7 @@ class StatusQuery extends IdoQuery
|
|||
'host_retry_check_interval' => 'hs.retry_check_interval',
|
||||
'host_check_timeperiod_object_id' => 'hs.check_timeperiod_object_id',
|
||||
'host_status_update_time' => 'hs.status_update_time',
|
||||
'host_is_reachable' => 'hs.is_reachable',
|
||||
'host_severity' => 'CASE WHEN hs.current_state = 0
|
||||
THEN
|
||||
CASE WHEN hs.has_been_checked = 0 OR hs.has_been_checked IS NULL
|
||||
|
@ -259,6 +260,7 @@ class StatusQuery extends IdoQuery
|
|||
'service_check_timeperiod_object_id' => 'ss.check_timeperiod_object_id',
|
||||
'service_status_update_time' => 'ss.status_update_time',
|
||||
'service_problem' => 'CASE WHEN ss.current_state = 0 THEN 0 ELSE 1 END',
|
||||
'service_is_reachable' => 'ss.is_reachable',
|
||||
'service_severity' => 'CASE WHEN ss.current_state = 0
|
||||
THEN
|
||||
CASE WHEN ss.has_been_checked = 0 OR ss.has_been_checked IS NULL
|
||||
|
@ -345,6 +347,10 @@ class StatusQuery extends IdoQuery
|
|||
$this->columnMap['hoststatus']['host_check_source'] = '(NULL)';
|
||||
$this->columnMap['servicestatus']['service_check_source'] = '(NULL)';
|
||||
}
|
||||
if (version_compare($this->getIdoVersion(), '1.13.0', '<')) {
|
||||
$this->columnMap['hoststatus']['host_is_reachable'] = '(NULL)';
|
||||
$this->columnMap['servicestatus']['service_is_reachable'] = '(NULL)';
|
||||
}
|
||||
$this->select->from(array('ho' => $this->prefix . 'objects'), array())
|
||||
->join(
|
||||
array('hs' => $this->prefix . 'hoststatus'),
|
||||
|
|
Loading…
Reference in New Issue