check_http odd behavior
Posted: Wed Jan 24, 2018 11:30 am
Hey everyone,
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?
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?
Code: Select all
define command {
command_name check_cert_https_port_days
command_line $USER1$/check_http -I $HOSTADDRESS$ -p $ARG1$ -C $ARG2$
}
NEW
./check_http -H 10.0.10.1 -p 4433 -C 45
SSL OK - Certificate '<removed info>' will expire on ****. HTTP WARNING: HTTP/1.1 400 Bad Request - 903 bytes in 0.014 second response time |time=0.013582s;;;0.000000 size=903B;;;0
OLD
./check_http -H 10.0.10.1 -p 4433 -C 45
SSL OK - Certificate '<removed info>' will expire on ****. HTTP OK: HTTP/1.1 302 Found - 908 bytes in 0.023 second response time |time=0.023273s;;;0.000000 size=908B;;;0