Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [Nagiosplug-help] check_by_ssh question

From: Olivier 'Babar' Raginel <nagios(at)babar.us>
Date: Tue Jun 26 2007 - 07:41:10 EDT


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.

Do you need help?X

Cheers,

-- 
Babar.

-------------------------------------------------------------------------
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/
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
Received on Tue Jun 26 07:42:02 2007

This archive was generated by hypermail 2.1.8 : Tue Jun 26 2007 - 07:50:03 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library