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
The following def does not work properly, for some reason it does not exclude hosts that are in downtime:
its weird tho, because the same def is used by services, and that does work.
`def countProblems(objects)
problems = 0
objects.each do |item|
item.each do |k, d|
if (k != "attrs")
next
end
if (d["state"] != 0 && d["downtime_depth"] == 0 && d["acknowledgement"] == 0)
problems = problems + 1
end
end
end
return problems
end`
The text was updated successfully, but these errors were encountered:
The following def does not work properly, for some reason it does not exclude hosts that are in downtime:
its weird tho, because the same def is used by services, and that does work.
`def countProblems(objects)
problems = 0
end`
The text was updated successfully, but these errors were encountered: