Ad Widget

Collapse

Trigger for Host Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dennisfeiock
    Junior Member
    • Jun 2006
    • 15

    #1

    Trigger for Host Error

    I was wondering if there is a way to make a trigger based off of the Error field when viewing hosts from the configuration menu.

    The reason I am trying to grab this info is that I ran into a situation where my monitored device was responding to pings, but would timeout when zabbix was trying to grab snmp data. When I tried to do a snmpwalk, it would return quite a few values, but then it would stop and timeout at the same spot every time. When checking the host status in zabbix, it showed that it was unable to retrive data when trying to connect to the ipaddress:161.

    I figured that I needed to monitor SNMP connectivity on the device, but when I create the following item, it always returns 0 instead of 1:
    NAME: SNMP Connectivity
    TYPE: Simple Check
    KEY: tcp,161
    TYPE OF INFORMATION: Numeric (integer 64-bit)
    the rest are the defaults.

    I also have a side-question concerning action macros. Is there a way to include the trigger comments field in an action? Doing so would help out a lot with having all the necessary information in an email action. Such as the following email-action example:
    ACTION MESSAGE = "host: {HOSTNAME}
    ip: {IPADDRESS}
    Current Value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
    Trigger notes: {TRIGGER.NOTES}
    {TRIGGER.NOTES} = "Trigger thrown when value != 0 for 900 seconds.
    value mappings:
    0 = ok
    1 = toner-Low
    2 = paper-Out
    3 = paper-Jam
    4 = door-Open"

    Thanks for any help.
    - DF
Working...