Ad Widget

Collapse

Trigger min value <0.05 but not 0 from icmppingsec

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dave700
    Junior Member
    Zabbix Certified Specialist
    • May 2011
    • 2

    #1

    Trigger min value <0.05 but not 0 from icmppingsec

    Hi,

    To catch hosts which have NO value below 50ms i have to write a trigger lets say "{icmppingsec[,1,,50,5000,avg].min(86400)}>0.05" for expression. (you think nothing easier than that!).
    But now the problem is that the item icmppingsec is giving me the value 0 for not reaching the target which is quite normal in our specific environment. So the expression is not working because min value will always be 0 as I understand the zabbix way of interpreting min values.

    I'm looking now for an expression fireing when there are NO values between 0.001 to 0.049, if there are some whithin one day (86400), no problem.

    The reason for this is we have moving public transport busses hop on a WLAN when coming home to depot and latency for ping is going below 50ms (or 0.05 in icmppingsec language...). when they are on the road they are on the mobile communication network making latency times at 120ms for average or more. if they have technical problems and never reach the WLAN Network for some reason they just stay on mobile network and making latency of >50ms.

    We well greatly apreciate any hint for resolving this! thx!!
    Dave
  • EnigmA-X
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 116

    #2
    You can use the AND function in a trigger, using the '&' character. Also, you can use # as expression operator in a trigger, which enables the 'not equals' future for you.

    In your case, your trigger would start to look something like:

    Code:
    {icmppingsec[,1,,50,5000,avg].min(86400)}>0.05&{icmppingsec[,1,,50,5000,avg].min(86400)}#0
    For more info, have a look at: http://www.zabbix.com/documentation/...onfig/triggers

    Most interesting for you are:
    • 16.1 Expression operators
    • Example 5


    If you have more questions, feel free to let us know

    Comment

    • dave700
      Junior Member
      Zabbix Certified Specialist
      • May 2011
      • 2

      #3
      it seems like this was the case. thanks alot, EnigmA-X!! seems like zabbix is such a great product with some real fine people around it

      first i got the expression like this and got trouble to understand exactly if it's really working. I thought zabbix takes the absolut min value out of the db and then thinks there is nothing to do because it's a 0 with the second part of this expression. i fine now and i'm out to fix some WLAN misconfigurations...

      Comment

      Working...