Fetch check_interval property of monitored objects, too

This commit is contained in:
Alexander A. Klimov 2018-07-18 15:42:34 +02:00
parent 1ae2507f0e
commit 0b5620d2b5
4 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class HoststatusQuery extends IdoQuery
'host_address' => 'h.address',
'host_address6' => 'h.address6',
'host_alias' => 'h.alias',
'host_check_interval' => '(h.check_interval * 60)',
'host_display_name' => 'h.display_name COLLATE latin1_general_ci',
'host_icon_image' => 'h.icon_image',
'host_icon_image_alt' => 'h.icon_image_alt',

View File

@ -138,6 +138,7 @@ class ServicestatusQuery extends IdoQuery
'object_type' => '(\'service\')',
'service' => 'so.name2 COLLATE latin1_general_ci',
'service_action_url' => 's.action_url',
'service_check_interval' => '(s.check_interval * 60)',
'service_description' => 'so.name2',
'service_display_name' => 's.display_name COLLATE latin1_general_ci',
'service_host' => 'so.name1 COLLATE latin1_general_ci',

View File

@ -100,6 +100,7 @@ class Host extends MonitoredObject
'host_attempt',
'host_check_command',
'host_check_execution_time',
'host_check_interval',
'host_check_latency',
'host_check_source',
'host_check_timeperiod',

View File

@ -135,6 +135,7 @@ class Service extends MonitoredObject
'service_attempt',
'service_check_command',
'service_check_execution_time',
'service_check_interval',
'service_check_latency',
'service_check_source',
'service_check_timeperiod',