I'm wondering if there is a way to setup triggers in zabbix to be dependent on the time period. I know this can be done with actions, but I'm wondering if there's any way to do so for a trigger. And if not, I would like to make that a feature request.
Right now, I have the following setup:
Triggers:
- one trigger that triggers if we have no messages received in the last hour, i.e. messagerate.max(3600)<1
- one trigger that triggers if we have no messages received in the last 12 hrs
Actions:
- alert on messages received in last hour trigger, Time period in "2-6,06:00-17:59"
- alert on messages received in 12 hrs trigger, no time period restriction
Currently, this covers what I'm going for, basically alerting only during weekday, working hours for the more sensitive trigger. However, it gets difficult to trace down these events using the event history, as throughout the off hours, the sensitive triggers are flapping constantly. Since we have 11 hosts based on this template, my event history is full of this sensitive trigger going on/off during off hours, and its tough to track down any real occurrences.
Any ideas how to get around this? I'm thinking about writing a custom user-monitored value, and associated trigger to trigger during off hours. Then, by adding a dependency to these triggers, they won't trigger throughout the night.
However, all this would be so much easier and more powerful if I were able to specify a trigger with a validity time period.
ps - I am running zabbix 1.4.6, and have also tried this on my 1.6 test machine.
Right now, I have the following setup:
Triggers:
- one trigger that triggers if we have no messages received in the last hour, i.e. messagerate.max(3600)<1
- one trigger that triggers if we have no messages received in the last 12 hrs
Actions:
- alert on messages received in last hour trigger, Time period in "2-6,06:00-17:59"
- alert on messages received in 12 hrs trigger, no time period restriction
Currently, this covers what I'm going for, basically alerting only during weekday, working hours for the more sensitive trigger. However, it gets difficult to trace down these events using the event history, as throughout the off hours, the sensitive triggers are flapping constantly. Since we have 11 hosts based on this template, my event history is full of this sensitive trigger going on/off during off hours, and its tough to track down any real occurrences.
Any ideas how to get around this? I'm thinking about writing a custom user-monitored value, and associated trigger to trigger during off hours. Then, by adding a dependency to these triggers, they won't trigger throughout the night.
However, all this would be so much easier and more powerful if I were able to specify a trigger with a validity time period.
ps - I am running zabbix 1.4.6, and have also tried this on my 1.6 test machine.
Comment