[Nagiosplug-help] check_by_ssh question

Olivier 'Babar' Raginel nagios at babar.us
Tue Jun 26 13:41:10 CEST 2007


On Mon, Jun 25, 2007 at 11:31:54AM -0700, Robert Cole wrote:
>    I tried the single quotes today and still get this error reported:
>    Could not open pipe: /usr/bin/ssh -i /home/nagios/.ssh/id_dsa
>    192.168.200.160 '/usr/nagios/plugins/check_log -F
>    /var/log/youmail/login.log -O
>    /home/nagios/192.168.200.160.var.log.login.server.seek -q 'No
>    ManagedConnections available within configured blocking timeout' '

No you didn't.
I wrote:
> Or use simple quotes around the -C for ssh.

You put the simple quotes around the parameter, the -q. I said the -C.

So do something like:

check_ssh_log!/var/log/youmail/login.log!/home/nagios/$HOSTADDRESS$.var.log.login.server.seek!"No 
ManagedConnections available within configured blocking timeout"

/home/nagios/.ssh/id_dsa -C '$USER9$/check_log -F $ARG1$ -O $ARG2$ -q 
$ARG3$'

Or in fact:
check_ssh_log!/var/log/youmail/login.log!/home/nagios/$HOSTADDRESS$.var.log.login.server.seek!No 
ManagedConnections available within configured blocking timeout

/home/nagios/.ssh/id_dsa -C '$USER9$/check_log -F $ARG1$ -O $ARG2$ -q "$ARG3$"'

Should do the trick.

Cheers,

-- 
Babar.




More information about the Help mailing list