check_http error
Posted: Thu Apr 18, 2024 8:36 am
Ran into an issue with the check_http plugin.
/usr/local/nagios/libexec/check_http -H "website.com"
No route to host
HTTP CRITICAL - Unable to open TCP socket
If I take out the website name, and put in the IP, it works.
HTTP OK: HTTP/1.1 301 Moved Permanently - 299 bytes in 0.375 second response time |time=0.374855s;;;0.000000 size=299B;;;0
It had been working, but the server needed to be upgraded. It was rhel 6.10, it's sitting on rhel 7.9, for now, but will get moved to 8.9 soon.
Still using iptables, though I'll probably change it to firewalld. Ntp checks in ok.
I don't have an issue using the IP, other than if the IP changes in the future. So, this is mostly academic.
Thanks!
/usr/local/nagios/libexec/check_http -H "website.com"
No route to host
HTTP CRITICAL - Unable to open TCP socket
If I take out the website name, and put in the IP, it works.
HTTP OK: HTTP/1.1 301 Moved Permanently - 299 bytes in 0.375 second response time |time=0.374855s;;;0.000000 size=299B;;;0
It had been working, but the server needed to be upgraded. It was rhel 6.10, it's sitting on rhel 7.9, for now, but will get moved to 8.9 soon.
Still using iptables, though I'll probably change it to firewalld. Ntp checks in ok.
I don't have an issue using the IP, other than if the IP changes in the future. So, this is mostly academic.
Thanks!