I created an availability monitor using a script plugin that runs every 5 minutes. I then created an alert with this:
If Condition: | Availability < 100.0% of 100.0% (Max Value) |
Enable Action: Once every 2 times conditions are met within a time period of 6 minutes.
The alert triggers on a single bad sample (return code 2 from script vs 0). The documentation doesn't go into any detail on exactly how "x times within x minutes" actually works, but my assumption would be that it would take 2 failures for the alert to trigger. Also, I would assume that 2 consecutive failed samples (5 minutes apart) would cause the alert to trigger because they both happened within a time period of 6 minutes.
Am I wrong about how this works or is this a bug?