master: nagios core, nsca
slave : nagios core, send_nsca
On the slave, I was able to run the check_dig command manually
However, the log is showing# /usr/lib64/nagios/plugins/check_dig -H <host_ip> -l http://www.google.com
DNS OK - 0.017 seconds response time (http://www.google.com. 243 IN A <ip>)|time=0.017362s;;;0.000000
With this, send_nsca forwards the same "NO ANSWER SECTION found" result to the master.[1534197576] SERVICE ALERT: <host>;DNS resolution;CRITICAL;HARD;5;DNS CRITICAL - 0.017 seconds response time (No ANSWER SECTION found)
My host/service cfg:
Code: Select all
define host {
use linux-server
host_name <host>
address <host_ip>
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}
define service {
use generic-service
host_name <host>
service_description DNS resolution
check_command check_dig!<host>!www.apple.com
}
Code: Select all
define command{
command_name check_dig
command_line $USER1$/check_dig -H $HOSTADDRESS$ -l $ARG1$
}
I want to say it used to work. Anything I might miss?
Thanks!