Problems with check_by_ssh

Heiko Jaberg heiko.jaberg at innovative-navigation.de
Thu Mar 16 15:54:13 CET 2006


Hi,

I encounter some problems using check_by_ssh.
Im trying to grep some version information from a header file on a 
remote host.

Both of the following command lines generate the desired information 
when called
directly from the shell. But only the second line works when scheduled 
by Nagios.
The second one produces the error "No output".

Whats wrong here ?


1.)
command_line    $USER1$/check_by_ssh  -i /export/home/nagios/.ssh/id_rsa 
-l user -H $HOSTADDRESS$  -C 'if [ -e /usr/local/ACE/VERSION ]; then 
echo `head -1 /usr/local/ACE/VERSION`; else echo No ACE found; fi'

2.)
 command_line    $USER1$/check_by_ssh  -i 
/export/home/nagios/.ssh/id_rsa -l user -H $HOSTADDRESS$  -C 'head -1 
/usr/local/ACE/VERSION'

Regards

Heiko

-- 

Heiko Jaberg                     email: Heiko.Jaberg at innovative-navigation.de
IN - Innovative Navigation GmbH  web:   http://www.innovative-navigation.de
Leibnizstrasse 11                tel.:  +49 7154 807159
D-70806 Kornwestheim             fax:   +49 7154 807154



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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