Originally posted by jyoung
It would be much cleaner if there were a way in Zabbix to define external commands. For example you could define an external command at the server
like:
ServerCommand=check_dns[*],/usr/local/nagios/libexec/check_dns -H $1 -s $HOSTNAME -a $2
This way you can attach the item to the actual host that it is checking and you don't have to write a shell script for each external plug-in.
This does pose one other problem though. Nagios plug-ins (for example) allow for the plug-in to decide if the check should be Ok, Warning, Critical, or UNKNOWN. One plug-in might check more than one thing, for example the dns plug-in checks to see if the server responds at all and also check to see if it responds with the correct address. I don't know how you could use that with the historical monitoring features of Zabbix. If you wanted to graph DNS server response time then you would have to have the plug-in return the response time. You could then of course setup a trigger to check if the response time was under a specific amount of time but what happens if the server doesn't reply at all?
Comment