The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
Article Feedback - NetSaint - a network monitor
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 checking https
Author: Dan Langille 
Date:   04-10-01 02:49

Here's what I had to do for checking https:




command[check_https]=$USER1$/check_http --ssl $HOSTADDRESS$

I recommend testing from the command line to ensure your check_http can do this:

$ /usr/local/libexec/netsaint/check_http --ssl
HTTP ok: HTTP/1.1 200 OK - 1 second response time

Make sure you have https not running and http running. Then test it again:

$ /usr/local/libexec/netsaint/check_http --ssl
Connection refused by host

$ /usr/local/libexec/netsaint/check_http
HTTP ok: HTTP/1.1 200 OK - 1 second response time

Then you know it's working and it's actually checking https and not http.

You might, and I stree might have to recompile the plugins. My memory is hazy but I don't think I had to do this in order to get the --ssl option to work:

cd /usr/local/etc/netsaint/plugins/netsaint-plugins-1.2.9-4
make clean
cp check_http /usr/local/libexec/netsaint

I'll verify this and update as necessary.

Reply To This Message
 Re: checking https
Author: RevDigger 
Date:   13-10-01 06:17

I forget if this is standard or something I did myself, but my commands.cfg has this:

command[check_ssl]=$USER1$/check_http -H $ARG1$ -S -C $ARG2$

-H is for the host name, in case it's a VHost and that is pertinent. -S tells it to use ssl. And -C is the number of days before the cert expires to start warning me. That's right, it checks the expire date on the cert for you. Too cool.

So in my hosts.cfg I have something like:


Works great. In my Netsaint Status Detail, I get, "Certificate will expire on 07/03/2002 23:59."

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum