Trying to monitor https (443)

OK. So, I am sure this has been addressed somewhere in the forums, but for some reason the search function here kicks me back very few local results and lots of google search links.

Anyway, to the point: I am trying to monitor https. A few documents I was able to find online showed that the ‘check_http’ plugin had a -ssl option for just such a thing, but apperently that was in older versions? It does not seem to be available to me.

When I try to use the -p option to point the check at port 443 i get:

root@sentry:/usr/local/nagios/libexec # ./check_http -H 192.168.100.10 -p 443
CRITICAL - Socket timeout after 10 seconds

Again, I am pretty sure this has been addressed in these forums somewhere - if thats the case and a solution was found could someone please point me twards that thread?

Thanks in advance.
Edited ]

Let me show you my command for checking https content:

‘check_https_content’ command definition

define command{
command_name check_https_content
command_line $USER1$/check_http -H $HOSTADDRESS$ -t 25 -S
}

Looks like an -S option, not -ssl.

Ooooo… SSL not available…

That might explain why the built in plugin help did not list -S or anything like that as an option…

Did I have to have that installed back when I compiled nagios or could I just get SSL installed and then reinstall the plugins?

ps- you tha man! thanks!

try check_http --help. If the option is not there, then you may need a newer plugin, or you may need to recompile. If you do, recompile, pay attention to the ./configure output. It will tell you perhaps that “SSL Missing” or something like that.

does nagios need to be recompiled to support ssl? or can i just recompile the plugins?

Nagios is not a webserver. It’s apache that you have to have ssl support for your website. Some of the plugins may need ssl libs in order to compile.

:o

thanks yall!