<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I tried the single quotes today and still get this error reported:<br>
<br>
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' ' <br>
<br>
My current configuration looks like this:<br>
<br>
define service{<br>
        use                             minor-service<br>
        hostgroup_name                  tuis<br>
        service_description             Oracle Database Connection Check<br>
        check_command                  
check_ssh_log!/var/log/youmail/login.log!/home/nagios/$HOSTADDRESS$.var.log.login.server.seek!'No
ManagedConnections available within configured blocking timeout'<br>
        max_check_attempts              1<br>
        notification_options            c<br>
        }<br>
<br>
define command{<br>
        command_name    check_ssh_log<br>
        command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -i
/home/nagios/.ssh/id_dsa -C "$USER9$/check_log -F $ARG1$ -O $ARG2$ -q
$ARG3$ "<br>
        }<br>
<br>
And when I try just creating a static command like this:<br>
<br>
define command{<br>
        command_name    check_youmail_log<br>
        command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -i
/home/nagios/.ssh/id_dsa -C "$USER9$/check_log -F
/var/log/youmail/login.log -O
/home/nagios/$HOSTADDRESS$.var.log.login.server.seek -q 'No
ManagedConnections available within configured blocking timeout'"<br>
        }<br>
<br>
I get this: <br>
<br>
Unknown argument: ManagedConnections <br>
<br>
Any ideas?<br>
<br>
As always your help is very much appreciated.<br>
<br>
Robert<br>
<br>
Olivier 'Babar' Raginel wrote:
<blockquote cite="mid:20070622205709.GA13056@mail.babar.us" type="cite">
  <pre wrap="">On Fri, Jun 22, 2007 at 01:50:32PM -0700, Robert Cole wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">nagios@ms1 ~ $ ssh  tui001 -i ~/.ssh/id_dsa -C 
"/usr/nagios/plugins/check_log -F /var/log/youmail/login.log -O 
/home/nagios/192.168.200.150.var.log.login.server.seek -q "No 
ManagedConnections available within configured blocking timeout""
Unknown argument: ManagedConnections
Usage: check_log -F logfile -O oldlog -q query
Usage: check_log --help
Usage: check_log --version
Any ideas?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Command interpretation.
Your command is enclosd within "" so you have to escape them within the 
ssh:
$ ssh  tui001 -i ~/.ssh/id_dsa -C 
"/usr/nagios/plugins/check_log -F /var/log/youmail/login.log -O 
/home/nagios/192.168.200.150.var.log.login.server.seek -q \"No 
ManagedConnections available within configured blocking timeout\""

Or use simple quotes around the -C for ssh.

  </pre>
</blockquote>
</body>
</html>