Im trying to create an alert based on a hosts availability.state not being “up”.
the issue is when i turn off oneagent - it doesnt always set the state to “unmonitored_agent_stopped” it will just leave gaps as shown. so my alert does not always work.
@Troy If your intention is to trigger an alert whenever the availability state != up, you can use the timeseries command with the nonempty parameter to calculate host availability. This parameter ensures that you get a result even when no data match the filter, such as when no hosts are up
@p_devulapalli So this works to a degree - im seeing the alert come in but it will close the problem after some time even though the value is still 0 / agent is still down. any idea how i can fix this?
Hello - Yes I see this happening, the problem gets created and stays open for a few minutes and closes on its own, the alerting is set to 3 ,5, 5 which is the default values. the problem closes even though the agent is still down and value is 0 for availability.
Nope - My detector is essentially the same as yours except it is filtering for on Os instead of a single machine. may open a case with Dynatrace if this behaviour is not expected.