Commit 67cf7acf authored by MaxSol1's avatar MaxSol1
Browse files

make critical the worst service state

parent d36b5760
......@@ -270,6 +270,9 @@ func handleIcingaCheckState(w http.ResponseWriter, r *http.Request) {
for _, obj := range results.Results {
if int64(obj.Attributes.State) > max_state {
max_state = int64(obj.Attributes.State)
if int64(obj.Attributes.State) == 2 {
max_state = int64(obj.Attributes.State)
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment