check http using specific SSL certificate

Itamar Lavender itamar at traiana.com
Tue Jan 11 03:05:45 CET 2005


Thanks for replying, unfortunately the way you suggest will take away
from me the wonder options of check_http. (since I really need to
monitor the pages).

10x,
Itamar.

-----Original Message-----
From: Dan Stromberg [mailto:strombrg at dcs.nac.uci.edu] 
Sent: Tuesday, January 11, 2005 3:13 AM
To: Itamar Lavender
Cc: strombrg at dcs.nac.uci.edu; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] check http using specific SSL certificate


You probably use some variation of the following theme:

if (echo 'GET / HTTP/1.0^M'; echo '^M') | \
   /usr/bin/maxtime 10 \
   /usr/bin/openssl s_client -quiet -connect "$1:443" 2>&1 | \
   grep HTTP > /dev/null 2>&1
then
   echo Service available
   exit 0
else
   echo Service down
   exit 2
fi

If you want my maxtime program, please drop me a note.  I probably
should put it up for download anyway.

On Tue, 2005-01-11 at 03:08 +0200, Itamar Lavender wrote:
> Hi,
> 
> I'm trying to monitor one of my HTTP servers which I must access
> trough SSL using my own certificate
> 
> The server doesn't supply a certificate but check if you have it.
> 
> Is it possible at all?
> I'm currently monitoring all my other servers & it works great....
> this is my favorite tool :-)
> If some one think he can help I'll be thankful...
> Any idea for new script that uses check_http will be blessed.
> 
> 
> Itamar.
> 
> 
> 
>  
> 
> 


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list