Check result log (logcheckresult)

The logcheckresult model is used to maintain a log of the received checks results.

The Alignak backend stores all the checks results it receives to keep a full log of the system checks results.

../_images/log_logcheckresult.png
Properties
Property Type Required Default Relation
Realm
objectid     realm
Sub-realms
boolean   True  
_users_read
objectid list     user
acknowledged
Acknowledged
boolean   False  
acknowledgement_type
Acknowledgement type
integer   1  
current_attempt
Current attempt number
integer   0  
downtimed
Downtimed
boolean   False  
execution_time
Execution time
float   0.0  
host
Concerned host identifier
objectid     host
Host name
string      
last_check
Check timestamp
integer   0  
Last time hard state changed
integer   0  
Last state
string   OK  
Last state changed
integer   0  
last_state_id
Last state identifier
integer   0  
Last state type
string True    
Last time up/ok
integer   0  
Last time Down/Warning
integer   0  
Last time critical
integer   0  
Last time unknown
integer   0  
Last time unreachable
integer   0  
latency
Latency
float   0.0  
long_output
Long output
string      
output
Output
string      
passive_check
Passive check
boolean   False  
perf_data
Performance data
string      
schema_version
integer   3  
Concerned service identifier
objectid     service
Service name
string      
State
string True    
State changed
boolean   False  
state_id
State identifier
integer   0  
State type
string True    

_realm: Realm this element belongs to.

_sub_realm: Is this element visible in the sub-realms of its realm?

host_name: The backend stores the host name. This allows to keep an information about the concerned host even if it has been deleted from the backend.

last_hard_state_changed: Last time this element hard state has changed.

last_state:

Allowed values: [‘OK’, ‘WARNING’, ‘CRITICAL’, ‘UNKNOWN’, ‘UP’, ‘DOWN’, ‘UNREACHABLE’]

last_state_changed: Last time the state changed

last_state_type:

Allowed values: [‘HARD’, ‘SOFT’]

last_time_0: Last time this element was Up/Ok.

last_time_1: Last time this element was Down/Warning.

last_time_2: Last time this element was Critical.

last_time_3: Last time this element was Unknown.

last_time_4: Last time this element was Unreachable.

service: If not set, this check result is an host check

service_name: The backend stores the service name. This allows to keep an information about the concerned service even if it has been deleted from the backend.

state:

Allowed values: [‘UP’, ‘DOWN’, ‘UNREACHABLE’, ‘OK’, ‘WARNING’, ‘CRITICAL’, ‘UNKNOWN’]

state_changed: The state has changed with the last check?

state_type:

Allowed values: [‘HARD’, ‘SOFT’]