Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
New to the forums but not new nagios user here. I recently run into an odd problem that I can't figure out. I just set up a new nagios server on CentOS 7 (my old one was on CentOS6) and several of my website checks have started returning a 400 Bad Request whereas the same exact checks work on my old server. The configs are identical and I migrated the IP address of the old server to the new one so it can't be a network based acl that's causing this. The only difference between the two servers other than potential software versions (nagios version is the same) is that my old CentOS 6 box was 32 bit whereas the new server is 64 bit. I'm posting the command definition and the results of running check_http from the terminal. Any ideas?
2.2.1 on both as provided by the EPEL repo. No proxying or NATing that would affect these checks that are failing. Interestingly enough, curl's output mirrors the results of the check_http plugin. The old server returns a 302 while the new one returns a 400.
The fact that curl is also having issues tells me it is in one of the system libraries, likely openssl. What is the output of openssl version on both the old and new servers? For reference, my Cent 6 is OpenSSL 1.0.1e-fips 11 Feb 2013 and Cent 7 is OpenSSL 1.0.2k-fips 26 Jan 2017.
Yes, those versions match what I have. I started suspecting openssl this morning although I'm not sure how it would cause a different http return code unless there's a bug in that version of openssl. None of the known issues stand out to me. My Fedora 26 box has OpenSSL 1.1.0g-fips 2 Nov 2017 which works fine with curl so it's unlikely that this is some change in behavior by design.
Would you be able to see the contents or would it take you to a nonexisting page?
Could there be some kind of a login page that automatically authenticates the old server but denies the access to a new server? Or is it more of a static web page?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.