Ad Widget

Collapse

Host availability trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MichaelF
    Member
    • Feb 2019
    • 65

    #1

    Host availability trigger

    Hello,
    I created a trigger as hostname:agent.ping.last()}=0 and was expacting to see the trigger firing once the server is down but it shows its value as OK, even when the agent.ping item does show that the host is down (please see the attachments). Would you please tell me what am I doing wrong?

    Thank you in advance,
    Michael
    Attached Files
  • brunohl
    Senior Member
    Zabbix Certified Specialist
    • Mar 2019
    • 215

    #2
    Hello,

    Looking at your sceens, it seems to me that you are not receiving values at all for this item. If so, you should be using the trigger chained with the nodata() function.
    Take a look at "Last 500 values" on "View as" on your last screen and show us if you are receiving value 0 or if you are not receiving values.

    Comment

    • MichaelF
      Member
      • Feb 2019
      • 65

      #3
      Hello brunohl,
      Yes, you're right - I receive either 1 or nothing, but the Host availability item "explains' a value of 0 as "not available" - shouldn't it mean the same as "no data"? If no what's the purpose of this item...???
      Would you please post an example of ~agent.ping:nodata() expression - i can't seem to find the correct example in the documantation?

      Comment

      • steve.destivelle
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Feb 2017
        • 304

        #4
        Hi Michael,
        the "no data" function is to fired the associate trigger if the item receive no value for a period of time.
        That's why on Zabbix Agent active item, it is better to have on the master item (the one that other depends on like ping) the "nodata" function in parallel.

        So your trigger will be like that:
        {host:agent.ping:last()}=0 or {host:agent.ping:nodata(5m)}=1

        Your trigger will fired with no value receive and if no data is receive since 5 minutes.
        Consider to add the icmp.ping with agent.ping in order to have the best of icmp ping and agent ping.

        Regards,

        Steve
        "Estimez la taille de votre base de données Zabbix: http://tools.izi-it.io
        "Rejoignez le ZABBIX Discord francophone https://discordapp.com/invite/hvauXEQ"

        "izi-it.io / ZABBIX Certified Trainer / ZABBIX French Evangelist"

        Comment

        • MichaelF
          Member
          • Feb 2019
          • 65

          #5
          Thank you very much for your response, Steve!
          The example you provided - {host:agent.ping:last()}=0 - is exactly the same as mine (hostname:agent.ping.last()}=0) - but I used Zabbix Agent item type - not Zabbix agent Active - can this lead to the problem?

          Comment

          Working...