check_by_ssh
Robert Cole
robert.cole at support4linux.com
Fri Jun 15 20:50:56 CEST 2007
I tried the multiple v's:
nagios at ms1 ~ $ /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':
nagios at ocmp0's password:
Didn't give me anymore output but as I mentioned doing it via just ssh
works:
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 ~ $
-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 at lists.sourceforge.net
>> <mailto: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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070615/2ceea56b/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