bityard Blog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
2013:01:20:nagios_plugins_hostname_vs_ip-address [2013/01/20 16:50] Frank Fegert2013:01:20:nagios_plugins_hostname_vs_ip-address [2013/01/20 16:55] (current) Frank Fegert
Line 52: Line 52:
 Recently our support group responsible for the MS ADS had trouble with the DNS service provided by the domain controllers. Probably due to a data corruption, the DNS service couldn't resolve hostnames for some, but not all, of our internally used domains anymore. Unfortunately, the time servers mentioned above are located in a domain that was affected by this issue. As a result the above checks started to fail, although they were thought to be configured to use IP addresses. Recently our support group responsible for the MS ADS had trouble with the DNS service provided by the domain controllers. Probably due to a data corruption, the DNS service couldn't resolve hostnames for some, but not all, of our internally used domains anymore. Unfortunately, the time servers mentioned above are located in a domain that was affected by this issue. As a result the above checks started to fail, although they were thought to be configured to use IP addresses.
  
-The usual head scratching, debugging, testing and putting the pieces together ensued. After looking through the [[https://github.com/nagios-plugins/nagios-plugins|Nagios Plugins source code]] it became clear that hostnames and IP addresses aren't treated different at all, ''getaddrinfo()'' is called indiscriminately. Since in case of an IP address this is not only unneccesary, but might also not be what was actually intended i wrote a patch {{:2013:01:20:nagios-plugins_do_not_resolve_IP_address.patch|nagios-plugins_do_not_resolve_IP_address.patch}} for the current nagios-plugins-1.4.16 sources.+The usual head scratching, debugging, testing and putting the pieces together ensued. After looking through the [[https://github.com/nagios-plugins/nagios-plugins|Nagios Plugins source code]] it became clear that hostnames and IP addresses aren't treated different at all, ''getaddrinfo()'' is called indiscriminately. Since in case of an IP address this is not only unnecessary, but might also not be what was actually intendedi wrote a patch {{:2013:01:20:nagios-plugins_do_not_resolve_IP_address.patch|nagios-plugins_do_not_resolve_IP_address.patch}} for the current nagios-plugins-1.4.16 sources to fix this issue.