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
and I try to add the following trigger under the host for the server called hawk.
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.
#DNS CHECK for HAWK
UserParameter=service[dns],/usr/bin/dig @127.0.0.1 127.0.0.1 | grep 'connection timed out' | wc -l
{hawk.someplace.com:service[dns].last(0)}=1
[ERROR:Invalid trigger expression. No such host (hawk.someplace.com) or monitored parameter
(service[dns])]
I am not sure what I am doing wrong.

Comment