check_dns Plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mastrlesssamurai
Posts: 1
Joined: Thu Sep 15, 2011 9:19 am

check_dns Plugin

Post by mastrlesssamurai »

Can someone please help me with the check_dns Plugin: I'm sure I've got everything set up correct.. but, N-Core is always showing Warning Level and strange Status Information. If I run ./check_dns from cmd line, it reports back proper resolved name and the time it took to run. But, inside Nagios Core, no matter what name I try to resolve or what argument combination I try, it always shows the DNS server name as returned like this:

DNS WARNING: 0.018 seconds response time. -H returns DNS.domain.local.

This is the configurations I have.. is there something I'm missing? Thank you in advance!

~~~~~~~~~~~~~~~~~~~

# 'check_dns' command definition
define command{
command_name check_dns
command_line $USER1$/check_dns -s $HOSTADDRESS$ -H $ARG1$ -w $ARG2$ -c $ARG3$ -t $ARG4$ -A
}

define service {
host_name dns
service_description DNS Resolution
use generic-service
check_command check_dns! -H server_01 -s dns_IP_address
}
Locked