Ad Widget

Collapse

Set a trigger when ping doesn't work for 10 minute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaki4594
    Junior Member
    • Oct 2017
    • 10

    #1

    Set a trigger when ping doesn't work for 10 minute

    Hi, I created a trigger in Zabbix that will check the ping to a user for 10 minutes. And then it will send an email to my account if the ping is not successful. So for the trigger, i did it like this :
    Code:
    {Template ICMP Ping:icmpping.nodata(5m)}=1
    And it didn't work, then I changed the expression to :
    Code:
    {Template ICMP Ping:icmpping.max(#5)}=0
    Still it doesn't change anything. What I want to accomplish here is simply to set a trigger that sends an email if I can't ping a host for a certain duration.
    Thanks in advance for any help.
    Regards,
    Zaki
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hello zaki4594,

    This actually isn't a purpose of the .nodata function. From the manual:

    Note that this function will display an error if, within the period of the 1st parameter:
    - there's no data and Zabbix server was restarted
    - there's no data and maintenance was completed
    - there's no data and the item was added or re-enabled
    Errors are displayed in the Info column in trigger configuration.


    I think that ICMP equivalent of not receiving the data is the icmppingloss key

    Regards,
    Alex!

    Comment

    • louis-m
      Member
      • Nov 2013
      • 70

      #3
      What about something like ths:

      ({TRIGGER.VALUE}=0 and {YOURHOSTorTEMPLATE:icmpping.max(600)}=0)

      So the first part is the ping (0 equals no ping) and also has to have that result for 600 seconds before firing....

      Comment

      • zaki4594
        Junior Member
        • Oct 2017
        • 10

        #4
        Awesome, thanks for the help guys!

        Comment

        • Deriuz
          Junior Member
          • Feb 2018
          • 13

          #5
          Hi guys, anyone had this to worked? My objective is to receive trigger from ISP routers that is not responding to ping ONLY after 10 minutes.
          I tried the suggestion of louis-m ({TRIGGER.VALUE}=0 and {YOURHOSTorTEMPLATE:icmpping.max(600)}=0) but the trigger sent every minute

          Hi zaki4594 , were you able to have it worked? Thanks

          Comment

          • Andrey123987456
            Member
            • Apr 2019
            • 44

            #6
            Good day to all! Help me please. I had a problem with the trigger, there is a network node, when it is working the trigger is normal, when it disappears from the network it signals the problem to me. {Obnaruhenie Mikrotik: icmppingsec.last ()} = 0. And I need to do that the trigger would not react immediately, but if the network node is not in the network for more than 5 hours. how to do it, I do not understand. I tried to play with count and nodata, but it doesn't work. Now I have come to this decision, but it also does not work correctly {Obnaruhenie Mikrotik: icmpping.max (18000)} = 0

            Comment

            Working...