I tried the multiple v's:

[EMAIL PROTECTED] ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i -vvvv ~/.ssh/id_dsa -C "/usr/nagios/plugins/check_swap -w 50% -c 10%"
Enter passphrase for key '/home/nagios/.ssh/id_dsa':
[EMAIL PROTECTED]'s password:

Didn't give me anymore output but as I mentioned doing it via just ssh works:

[EMAIL PROTECTED] ~ $ 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
[EMAIL PROTECTED] ~ $

-rw-r--r-- 1 nagios nagios  615 Jun  8 07:03 authorized_keys
-rw------- 1 nagios nagios  736 Jun  8 05:12 id_dsa
-rw-r--r-- 1 nagios nagios  614 Jun  8 05:12 id_dsa.pub
-rw-r--r-- 1 nagios nagios 1270 Jun 15 10:21 known_hosts

and I did try doing /home/nagios/.ssh/id_dsa and it didn't make a difference. It looks like a problem with check_by_ssh itself doesn't it?


Luis Cerezo wrote:
who is the owner of the .ssh/id_dsa?
are you sure there is no pass on it?
did you try the rsa versions of the keys?
did you try to expand the ~ ?
what is the output with multiple -v's

-luis

*********
Luis E. Cerezo
281.509.8397
GSS GlobalIT

On Jun 15, 2007, at 1:39 PM, Robert Cole wrote:

-------------------------------------------------------------------------
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/_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net <mailto:Nagios-users@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

-------------------------------------------------------------------------
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/
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to