Ad Widget

Collapse

Firing a trigger on unknown?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davidmh
    Junior Member
    • Mar 2007
    • 2

    #1

    Firing a trigger on unknown?

    Hello, I would like to fire a trigger (to send me an email alert) when an item changes from 0 to unknown.

    That is I want to fire an email alert when a zabbix_agentd stops running in a remote host.

    What is the correct way of doing it? Im trying different things but latest data remains the same as when the agent was running so i dont get an email when a host is down.

    I want to avoid doing ping checks for remote hosts in another agent. I want each agent to "contain" a trigger that activates when the agent goes down.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Originally posted by davidmh
    I want to avoid doing ping checks for remote hosts in another agent. I want each agent to "contain" a trigger that activates when the agent goes down.
    I would suggest using of function nodata() for item agent.ping. Something similar to:


    "No data from ZABBIX agent. Agent down?"
    {host:agent.ping.nodata(300)}=1
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • davidmh
      Junior Member
      • Mar 2007
      • 2

      #3
      Thanks a lot ! it works that way.

      It only has a small problem, when doing tests I kill the zabbix agent, so the email is sent with the text:

      No data from agent: ON

      And when i restart the agent, the alarm goes off in the overview and the email i receive is:

      No data from agent: ON

      And i think it should be: No data from agent: OFF

      Leaving that small bug apart it works great

      Comment

      Working...