Closed csawyerldn23 closed 1 year ago
Hi,
Sorry but I don’t really know how to help you here troubleshooting this issue.
The plugin itself does nothing special regarding host name resolution. It uses the python-redfish library to perform all the requests.
And if the host name can be resolved by other tools then it seems a installation or environment specific issue.
I also don’t know which config you are referring to.
Did you check if there is a proxy defined within the environment?
Cheers Ricardo
Thanks. I've worked around the issue by defining a new macro in the hosts definition that points to the system's iDrac IP rather than asking the script to resolve bmc$HOSTNAME$ (which expands to a host existent in DNS) regards
Great that you found a solution. Can I close the ticket?
Please do - thanks
Hi
check_redfish.py fails to resolve hostnames, resulting in check failure. Checks against host IP address succeed
Creds, hosts, etc. details suppressed for obvious reasons:
$ /usr/lib64/nagios/plugins/check_redfish.py --info -u -p -H [OK]: INFO: Dell Inc. PowerEdge R7XX (CPU: 2, MEM: 512GB) - BIOS: 1.9.2 - Serial: XXXXXXXXXX - ServiceTag: XXXXXX - Power: On - Name: NOT SET - 60 health sensors are in 'OK' state
$ /usr/lib64/nagios/plugins/check_redfish.py --info -u -p -H [CRITICAL]: Host 'HOSTNAME.DOMAIN' down or unreachable.
Outside of the script, hostname resolution works perfectly
Additional to this: the host's IP address and alias are defined with host_name in the.cfg config
thank you