nagiox無法監控遠程的DNS服務
nagiox 3版本。系統是rhce 5.4
nagiox監控機主機名:ha1.huang.com ip:192.168.11.21.被監控機是ha2.huang.com ,ip:192.168.11.22 dns在ha2.huang.com上面.
現在我在被監控機上面自己測試自己都不能成功
# ./libexec/check_dns -H localhost -s www.huang.com -a 192.168.11.22
DNS CRITICAL - expected '192.168.11.22' but got '127.0.0.1'
# ./libexec/check_dns -H localhost -s www.huang.com -a 192.168.11.22
DNS CRITICAL - expected '192.168.11.22' but got '127.0.0.1'
# ./libexec/check_dns -H localhost -s www.huang.com -a 127.0.0.1
DNS OK: 0.058 seconds response time. localhost returns 127.0.0.1|time=0.058446s;;;0.000000
# nslookup www.huang.com
Server: 192.168.11.22
Address: 192.168.11.22#53
Name: www.huang.com
Address: 192.168.11.22
# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.168.11.22
nameserver 61.139.2.69
nameserver 221.10.251.52
監聽的其它的服務是正常的。
《解決方案》
nagiox出新產品了,是nagios吧!
《解決方案》
這麼寫
./libexec/check_dns -H localhost -s 192.168.11.22 www.huang.com
另外不是nagiox 應該是nagios吧!