I'm running this command:
/usr/lib64/nagios/plugins/check_ping -H nessus-lab -w 100,20% -c 500,60%
strace tells me that it's following this path:
- Read /etc/nsswitch.conf, which says "hosts: files dns"
- Read /etc/host.conf, which doesn't exist
- Read /etc/resolv.conf
- Read the /etc/hosts file
- Attempt to nslookup the hostname against every server in /etc/resolv.conf using every "search" domain in /etc/resolv.conf
(This is a problem because one of my DNS servers is acting flaky ... and I know that's my problem ... but it shouldn't matter.)
Can somebody enlighten me?