Ad Widget

Collapse

Attempting to add a trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jterlecki
    Junior Member
    • Dec 2004
    • 2

    #1

    Attempting to add a trigger

    I added the following line to zabbix_agentd.conf and restarted it, to allow me to verify that the DNS server on the machine was up and answering

    #DNS CHECK for HAWK
    UserParameter=service[dns],/usr/bin/dig @127.0.0.1 127.0.0.1 | grep 'connection timed out' | wc -l
    and I try to add the following trigger under the host for the server called hawk.

    {hawk.someplace.com:service[dns].last(0)}=1
    But I keep getting the following error.

    [ERROR:Invalid trigger expression. No such host (hawk.someplace.com) or monitored parameter
    (service[dns])]

    I am not sure what I am doing wrong.
  • jterlecki
    Junior Member
    • Dec 2004
    • 2

    #2
    added but now it always disables itself

    Okay, I added it to the configuration of items for that server. But it refuses to keep it's status Active. It always returns to Not Supported.

    This is the info for the item itself

    type: Zabbix Agent
    key: service[dns]
    Units: - nil/empty -
    Multiplier: -
    Update in secs: 30
    Keeps History: 7
    Status: Not supported (always returns to this one after a few seconds)
    Type of Information: Numeric
    Store Value: as is

    Comment

    • avenger
      Junior Member
      • Oct 2004
      • 10

      #3
      Originally posted by jterlecki
      [ERROR:Invalid trigger expression. No such host (hawk.someplace.com) or monitored parameter
      (service[dns])]
      Please check that you typed all information correctly.
      I tried to reproduce an error on my hosts - and get all working without any bug
      Just copied all from your post without changing anything.

      Comment

      Working...