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.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Article Feedback - NetSaint - a network monitor
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 checking https
Author: Dan Langille 
Date:   04-10-01 02:49

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

hosts.cfg:

service[dev]=HTTPS;0;24x7;3;2;1;freebsd-admins;120;24x7;1;1;1;;check_https!

commands.cfg:

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 10.0.0.1
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 10.0.0.1
Connection refused by host

$ /usr/local/libexec/netsaint/check_http 216.187.106.227
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
./configure
make
cp check_http /usr/local/libexec/netsaint

I'll verify this and update as necessary.


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

 Topics Author  Date
 checking https   new
Dan Langille 04-10-01 02:49 
 Re: checking https   new
RevDigger 13-10-01 06:17 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 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

phorum.org