check_by_ssh

Robert Cole robert.cole at support4linux.com
Fri Jun 15 20:39:07 CEST 2007


I noticed this list has a lot more activity on it and the plugin list 
next to none so please excuse me.

I'm not sure if I found a bug or what but I can login to the remote 
system I'm trying to check with key based authentication I can even do a 
"ssh -i ~/.ssh/id_dsa remotecomputer "/usr/nagios/plugins/check_swap -w 
50% -c 10%" and it works just fine:

nagios at ms1 ~ $ ssh -i .ssh/id_dsa remotecomputer "/usr/nagios/plugins/check_swap -w 50% -c 10%"
SWAP OK - 100% free (1996 MB out of 1996 MB) |swap=1996MB;998;199;0;1996
nagios at ms1 ~ $

but when I use:

nagios at ms1 ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i 
~/.ssh/id_dsa -C "/usr/nagios/plugins/check_swap -w 50% -c 10%"
Enter passphrase for key '/home/nagios/.ssh/id_dsa':


I get prompted for a passphrase and of course if I don't enter that I 
get prompted for a password which I can enter and I get the expected 
result. Another odd thing is if I don't enter anything after a short 
period of time it times out then that shell is basically done as all I 
can do is hit enter and get another shell prompt, nothing else shows up.

Any ideas? I use nrpe on most of the systems but this system I'm trying to monitor is a RHEL 3 server and I can't update it or it won't be supported and I can't seem to find an old rpm of nrpe that will work, so I need another way to run check on it so I'm trying the check_by_ssh.

Thanks,
Robert

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070615/6a55884f/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
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