Hi,
Introduction - SOLVED, see post #4
Zabbix 2.4.3
Monitoring target: Switch
I have two snmptrap items:
- interface status: updated every time the interface goes up or down, so easy to monitor
- intrusion detected: if active, only one trap is submitted, so no update on this item
Explanation
I'd like to achieve that, if an intrusion is detected, a trigger goes to PROBLEM, and switches back to OK, if the interface is up again (which is only the case if you manually clear the intrusion flag and re-enable the interface) or if ack'ed (but that's not possible, cause ack'ing won't set the trigger status back to OK...i know about issue #104)
Because the "intrusion detected" item receives only one message and no update, i thought of working with .nodata(), but nothing works as expected. So the question is, how to combine an item that gets updated regularly (Interface up/Interface down) and an item that receives only one message and no update.
Implementation
Because no combination works, i'm using this right now:
{SWITCH.snmptrap[intrustion.item].nodata(60)}=0
This way, a PROBLEM is reported as soon as a intrustion is detected, and because ack'ing doesn't change the status, the trigger is autom. set back to OK if the item isn't updated within 60 seconds. I've already tried all kind of combinations with {TRIGGER.VALUE}=0 or 1 + item without success.
Thanks for any help
Introduction - SOLVED, see post #4
Zabbix 2.4.3
Monitoring target: Switch
I have two snmptrap items:
- interface status: updated every time the interface goes up or down, so easy to monitor
- intrusion detected: if active, only one trap is submitted, so no update on this item
Explanation
I'd like to achieve that, if an intrusion is detected, a trigger goes to PROBLEM, and switches back to OK, if the interface is up again (which is only the case if you manually clear the intrusion flag and re-enable the interface) or if ack'ed (but that's not possible, cause ack'ing won't set the trigger status back to OK...i know about issue #104)
Because the "intrusion detected" item receives only one message and no update, i thought of working with .nodata(), but nothing works as expected. So the question is, how to combine an item that gets updated regularly (Interface up/Interface down) and an item that receives only one message and no update.
Implementation
Because no combination works, i'm using this right now:
{SWITCH.snmptrap[intrustion.item].nodata(60)}=0
This way, a PROBLEM is reported as soon as a intrustion is detected, and because ack'ing doesn't change the status, the trigger is autom. set back to OK if the item isn't updated within 60 seconds. I've already tried all kind of combinations with {TRIGGER.VALUE}=0 or 1 + item without success.
Thanks for any help
Comment