The nodata trigger works fine when it is set to .nodata(30)}=1. But I need to ensure there is data for last 10 minutes (.nodata(600)}=0).
Trigger:
{host1:item_status.nodata(30)}=1
Recovery:
{host1:item_status.nodata(600)}=0
But the recovery alert is sent instantly. Any suggestions?
But I want something like this:
Trigger:
{host1:item_status.nodata(30)}=1
Recovery:
{host1:item_status.nodata(600)}=0
But the recovery alert is sent instantly. Any suggestions?
Code:
{host1:item_status.nodata(30)}=1
2019-12-31 10:08:41 4 -> Alert recovers instantly since it has data.
(nodata) -> Alerts gets triggered due to no data
2019-12-31 08:47:41 4
2019-12-31 08:46:41 0
2019-12-31 08:45:41 0
2019-12-31 08:44:41 0
2019-12-31 08:44:17 4
Code:
{host1:item_status.nodata(600)}=0
2019-12-31 10:10:17 4 -> Has data for last 10 minutes. Send recovery alert.
2019-12-31 10:10:05 4
2019-12-31 10:09:53 4
2019-12-31 10:09:41 4
2019-12-31 10:09:29 4
2019-12-31 10:09:17 4
2019-12-31 10:09:05 4
2019-12-31 10:08:53 4
2019-12-31 10:08:41 4 -> incoming new data
(nodata) -> Alerts gets triggered due to no data
2019-12-31 08:47:41 4
2019-12-31 08:46:41 0
2019-12-31 08:45:41 0
2019-12-31 08:44:41 0
2019-12-31 08:44:17 4
Comment