I have simple icmpping availability watch on the routers for remote sites. I set up triggers like:
and an action that filters on the routers group, title like "timeout". I get notices alright, two per event. So I figured I was getting one for when the timeout occurred, and a second one when the ping again succeeded (restored).
So I figured I would try a set of triggers and try to send a different message for timeout and restored.
Well, now I get four messages, two each timeout, and restored. I looked at Zabbix 1.4 Manual in section 4.11.4 Hysteresis and tried to use
and get "Expression [{TRIGGER.VALUE}] does not match to [server:key.func(param)]"
This should be simple, but I do not quite get it. I want one page when icmpping times out, and another when it resumes.
Code:
{POP7Router:icmpping.last(0)}=0
So I figured I would try a set of triggers and try to send a different message for timeout and restored.
Code:
Timeout:
{POP7Router:icmpping.prev(0)}=1&{POP7Router:icmpping.last(0)}=0
Restored:
{POP7Router:icmpping.prev(0)}=0&{POP7Router:icmpping.last(0)}=1
Code:
{TRIGGER.VALUE}=1&{POP7Router:icmpping.last(0)}=0
{TRIGGER(14170).VALUE}=1&{POP7Router:icmpping.last(0)}=0
{14170.VALUE}=1&{POP7Router:icmpping.last(0)}=0
{Connection Timeout POP7.VALUE}=1&{POP7Router:icmpping.last(0)}=0
This should be simple, but I do not quite get it. I want one page when icmpping times out, and another when it resumes.
I just want clearer messages than "Connection Timeout ON" and "Connection Timeout OFF" for the two other people on the page list. Such statements are clear to me only because I administer the server and configure the triggers. The recipient of the message is not concerned about the state of the trigger, they want to know the state of the router. So "Connection Timeout" and "Connection Restored" would give them a clearer understanding of the current status of the connection.
Comment