Address resolution issue
Posted: Tue Sep 25, 2018 10:18 am
I've got Nagios core 4.2.2 running on RedHat 5 without any issues.
I've built a new box with Nagios core 4.4.2 running on RedHat 7. The new Nagios instance seems to have some issues with resolving addresses with check_http. It looks like the Nagios worker threads can't resolve an address for a host that has multiple A records. I see entries like this in the logs:
An nslookup on both servers reveals the same response:
The server running ver 4.2.2 doesn't have a problem with this at all, but the one running 4.4.2 does. The former is using check_http v2.1.1, the latter is using check_http v2.2.1 so you might think this is a plugin issue. However, running check_http from the command line returns a correct result for the same host, so it's looking like Nagios core is the bad boy here.
Has anyone else experienced this, or have any suggestions as to the cause and how to fix please?
I've built a new box with Nagios core 4.4.2 running on RedHat 7. The new Nagios instance seems to have some issues with resolving addresses with check_http. It looks like the Nagios worker threads can't resolve an address for a host that has multiple A records. I see entries like this in the logs:
Code: Select all
[1537886820] Warning: Check of host 'openplatform-int' timed out after 30.01 seconds
[1537886820] wproc: Core Worker 3858: job 2632 (pid=20581): Dormant child reaped
[1537886871] wproc: Core Worker 3858: job 2724 (pid=21160) timed out. Killing it
[1537886871] wproc: CHECK job 2724 from worker Core Worker 3858 timed out after 30.00s
[1537886871] wproc: host=openplatform-int; service=(null);
[1537886871] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
Code: Select all
nslookup openplatform-int.com
Server: 10.1.2.23
Address: 10.1.2.23#53
openplatform-int.com canonical name = internal-opt-prod.lb.anypointdns.net.
Name: internal-opt-prod.lb.anypointdns.net
Address: 10.251.60.138
Name: internal-opt-prod.lb.anypointdns.net
Address: 10.251.60.253
Has anyone else experienced this, or have any suggestions as to the cause and how to fix please?