Check_http changed?
Posted: Mon Jul 02, 2018 12:01 pm
I just upgraded my XI to the latest version today on a centos 5 box, and the check_http is not responding the same on the upgrade as it used to.
so I went to an XI install that I did not upgrade, and the check worked fine
Example, older XI install (I have to remove the domain names etc
]# /usr/local/nagios/libexec/check_http -I lvsprdxxxapp02.gxxxt.net -k "Host: xxxman.gxxxt.net" -p 9201 -u /xxxmanJsp/CTdisplayxxxManLogin.jsp -e 200 -w 5 -c 10 -t 15 -m 100
HTTP OK: Status line output matched "200" - 6526 bytes in 0.152 second response time |time=0.152163s;5.000000;10.000000;0.000000 size=6526B;100;0;0
On the freshly upgraded XI
~]$ /usr/local/nagios/libexec/check_http -I lvsprdxxxapp02.gxxxt.net -k "Host: xxxxman.gxxxt.net" -p 9201 -u /xxxmanJsp/CTdisplayxxxManLogin.jsp -e 200 -w 5 -c 10 -t 15 -m 100
HTTP CRITICAL - Invalid HTTP response received from host on port 9201: HTTP/1.1 302 Moved Temporarily
HTTP/1.1 302 Moved Temporarily -
I physically went to the url and there was no 302
log% curl -I http://xx.xx.160.13:9201/xxxmanJsp/CTdi ... nLogin.jsp
HTTP/1.1 200 OK
I also rebooted the XI machine after the upgrade
for your standard questions
Version of the problem machine
Installed Version: 5.5.0
Last Update Check: 2018-07-02 16:15:34
CentOS Linux release 7.5.1804 (Core)
Problem XI
]$ /usr/local/nagios/libexec/check_http -V
check_http v2.2.1 (nagios-plugins 2.2.1)
Good XI
]# /usr/local/nagios/libexec/check_http -V
check_http v2.0.3 (nagios-plugins 2.0.3)
so I went to an XI install that I did not upgrade, and the check worked fine
Example, older XI install (I have to remove the domain names etc
]# /usr/local/nagios/libexec/check_http -I lvsprdxxxapp02.gxxxt.net -k "Host: xxxman.gxxxt.net" -p 9201 -u /xxxmanJsp/CTdisplayxxxManLogin.jsp -e 200 -w 5 -c 10 -t 15 -m 100
HTTP OK: Status line output matched "200" - 6526 bytes in 0.152 second response time |time=0.152163s;5.000000;10.000000;0.000000 size=6526B;100;0;0
On the freshly upgraded XI
~]$ /usr/local/nagios/libexec/check_http -I lvsprdxxxapp02.gxxxt.net -k "Host: xxxxman.gxxxt.net" -p 9201 -u /xxxmanJsp/CTdisplayxxxManLogin.jsp -e 200 -w 5 -c 10 -t 15 -m 100
HTTP CRITICAL - Invalid HTTP response received from host on port 9201: HTTP/1.1 302 Moved Temporarily
HTTP/1.1 302 Moved Temporarily -
I physically went to the url and there was no 302
log% curl -I http://xx.xx.160.13:9201/xxxmanJsp/CTdi ... nLogin.jsp
HTTP/1.1 200 OK
I also rebooted the XI machine after the upgrade
for your standard questions
Version of the problem machine
Installed Version: 5.5.0
Last Update Check: 2018-07-02 16:15:34
CentOS Linux release 7.5.1804 (Core)
Problem XI
]$ /usr/local/nagios/libexec/check_http -V
check_http v2.2.1 (nagios-plugins 2.2.1)
Good XI
]# /usr/local/nagios/libexec/check_http -V
check_http v2.0.3 (nagios-plugins 2.0.3)