Last/next check are timestamps, give NULL when it doesn't make sense

This commit is contained in:
Thomas Gelf 2013-08-20 23:55:02 +02:00 committed by Eric Lippmann
parent 200731aedc
commit cd37f47d1b
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ class StatusQuery extends AbstractQuery
'host_last_hard_state' => 'hs.last_hard_state',
'host_last_hard_state_change' => 'hs.last_hard_state_change',
'host_check_command' => 'hs.check_command',
'host_last_check' => 'hs.last_check',
'host_next_check' => 'hs.next_check',
'host_last_check' => 'UNIX_TIMESTAMP(hs.last_check)',
'host_next_check' => 'CASE hs.should_be_scheduled WHEN 1 THEN UNIX_TIMESTAMP(hs.next_check) ELSE NULL END',
'host_current_check_attempt' => 'hs.current_check_attempt',
'host_max_check_attempts' => 'hs.max_check_attempts',
'host_attempt' => 'hs.current_check_attempt || \'/\' || hs.max_check_attempts',