PDA

View Full Version : Attempting to add a trigger


jterlecki
16-12-2004, 18:32
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
16-12-2004, 22:56
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

avenger
18-12-2004, 22:50
[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.