-
Incident report
-
Resolution: Duplicate
-
Minor
-
None
-
2.0.3
-
None
Firstly, I apologize if I am in the wrong area for this question.
I am trying to create a template trigger that can handle a null value. Trying to put it simply, if I have 3 simple checks pinging 3 separate IPs, I have alerts letting me know which one of those IPs stops responding, but I want a 4th alert to let me know if all 3 go down. The problem arises when the host I'm pinging only has 1 or 2 IPs and I disable the secondary and/or tertiary Items.
I've tried a number of different expression combinations and haven't been able to figure it out. I've removed the specifics, but this is what I've started off with:
{icmpping[IP1].sum(#4)}=0 &
{icmpping[IP2].sum(#4)}=0 &
{icmpping[IP3].sum(#4)}=0This works when they are all enabled, but if I disable the icmpping[IP3] item, it fails to alert (even if i set to #1 instead of =0).
I've tried adding things like: ~ & ({icmpping[IP3].sum(#4)}
=0 |
{icmpping[IP3].nodata(3600)}=0) - but this didn't seem to work either, so I'm probably just doing it wrong.
Please let me know if I can provide any more information, or if I should be asking this somewhere else.
Thanks,
Jason
- duplicates
-
ZBX-6278 Creating a trigger that allows for a Null value
-
- Closed
-