[Nagiosplug-help] https problem using check_http

Marc Powell lists at xodus.org
Thu Mar 18 18:25:51 CET 2010


On Mar 18, 2010, at 10:51 AM, Scott, Ewan wrote:

> Hi
> 
> I'm trying to check a JBoss server by accessing it's home page over https. The link works fine through a browser (https://sbc-hrs-01:8443/index.html ) but not with the nagios check_http plugin.
> 
> /usr/local/nagios/libexec/check_http -I 150.150.100.44 -u https://sbc-hrs-01:8443/index.html
> HTTP WARNING: HTTP/1.1 404 /index.html - 1182 bytes in 0.007 second response time |time=0.006620s;;;0.000000 size=1182B;;;0
> 
> Any ideas about this from the plugin point of view?

The :8443 in the URL is a port specification. Browsers automagically know how to translate that to the port to connect to but check_http doesn't read -u in that way. Additionally, you need to specify SSL connection, host and proper -u. Try the following --

check_http --help

/usr/local/nagios/libexec/check_http -I 150.150.100.44 --ssl -H sbc-hrs-01 -p 8443 -u /index.html 

--
Marc



More information about the Help mailing list