Paul Archer wrote:
> I think you've got a good idea with Nagios. Go to the downloads 
> section off www.nagios.org, and get the plugins. You can use 
> check_tcp, which will give you an exit status of zero if it connects, 
> and 1 or 2 (configurable) if it doesn't. It's also very easy to set 
> the timeout values you want to use.
.. and knowing that I have a full up and running Nagios system on the 
same server ..

Anyhow, using '/usr/local/nagios/libexec/check_tcp -p 22 -H $host' 
works. But be gentle with this command, as it tries to connect to a TCP 
port, but then stops any communication. So if you use it for eg MySQL, 
you will end up with endless counts of open connections and be locked 
out of your MySQL (been there, not funny).

But for SSH, that problem does not occur.

-- 
Toni Van Remortel
Linux System Engineer @ Precision Operations NV
+32 3 452 92 26 - [EMAIL PROTECTED]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to