You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Host based elements are displaying the check result rather than the host state.
The check result is from results[0].attr.last_check_result.state and is the result the check returns. This can be OK, WARNING, CRITICAL, UNKNOWN or PENDING.
A hosts status is from results[0].attr.state and is OK, CRITICAL, UNKNOWN or PENDING.
To Reproduce
Steps to reproduce the behavior:
Create test dashboard
Add element with Element Type of Host
Select a host from the drop down that is in a OK state but the check is returning a warning state, eg: host with http check returning 404.
The element returns as warning which is incorrect.
Expected behavior
The element state should match Icinga's state
Additional context
Meerkat can predict what the host state should be based on the last_check_result.state value if the event stream doesn't have the hosts state and only has the last check results state.
Meerkat Version = 3.1.0
The text was updated successfully, but these errors were encountered:
Fix: #219 Call correct parameter's for host requests
Fix: #220 Make dashboard elements for host based objects return correct mapping for Up/Down based on check state.
Fix: Fix problem with frontends where loss of connect to Meerkat caused the frontend to spam requests at a unreasonable rate.
Fix: version flag (really build string) in Meerkat to report correct build string
---------
Co-authored-by: 63 <55000067+63@users.noreply.github.com>
Describe the bug
Host based elements are displaying the check result rather than the host state.
The check result is from
results[0].attr.last_check_result.state
and is the result the check returns. This can beOK
,WARNING
,CRITICAL
,UNKNOWN
orPENDING
.A hosts status is from
results[0].attr.state
and isOK
,CRITICAL
,UNKNOWN
orPENDING
.To Reproduce
Steps to reproduce the behavior:
The element returns as warning which is incorrect.
Expected behavior
The element state should match Icinga's state
Additional context
Meerkat can predict what the host state should be based on the
last_check_result.state
value if the event stream doesn't have the hosts state and only has the last check results state.The text was updated successfully, but these errors were encountered: