Nagios error – DNS

error output parsing /usr/sbin/nslookup

(1)For testing from nagios server

[nagios@monitor libexec]$ ./check_nrpe -H hostname -c check_load

(2) add the nagiosip; in /etc/named.conf

allow-recursion { localhost;nagios ip;};

(3) change the entry in services.cfg file as

check_named or check_DNS check_dig

recurssion = yes

or

comment recursion

or

add nagios ip to allow recursion

(4)add the port 5666 in apf or csf