check_ping insists on DNS
Posted: Tue Sep 08, 2020 9:49 am
So I'm not sure if this is a bug, or by design... and I don't know enough about system internals to know whose bug/feature it is.
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:
(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?
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?