mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
HoststatusQuery: Add latency
to next_update calculation..
..and double the entire result refs #3212
This commit is contained in:
parent
5ead593fa7
commit
44f63576d1
@ -98,14 +98,14 @@ class HoststatusQuery extends IdoQuery
|
|||||||
NULL
|
NULL
|
||||||
ELSE
|
ELSE
|
||||||
UNIX_TIMESTAMP(hs.last_check)
|
UNIX_TIMESTAMP(hs.last_check)
|
||||||
+ CASE WHEN
|
+ (CASE WHEN
|
||||||
COALESCE(hs.current_state, 0) > 0 AND hs.state_type = 0
|
COALESCE(hs.current_state, 0) > 0 AND hs.state_type = 0
|
||||||
THEN
|
THEN
|
||||||
hs.retry_check_interval
|
hs.retry_check_interval
|
||||||
ELSE
|
ELSE
|
||||||
hs.normal_check_interval
|
hs.normal_check_interval
|
||||||
END * 60 * 2
|
END * 60
|
||||||
+ CEIL(hs.execution_time)
|
+ CEIL(hs.execution_time) + CEIL(hs.latency)) * 2
|
||||||
END',
|
END',
|
||||||
'host_no_more_notifications' => 'hs.no_more_notifications',
|
'host_no_more_notifications' => 'hs.no_more_notifications',
|
||||||
'host_normal_check_interval' => 'hs.normal_check_interval',
|
'host_normal_check_interval' => 'hs.normal_check_interval',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user