[Nagiosplug-help] check_by_ssh question

Robert Cole robert.cole at support4linux.com
Thu Jun 28 03:30:09 UTC 2007


Well I just tried the single quotes and I got the same "could not open 
pipe" error message.

Could not open pipe: /usr/bin/ssh -i /home/nagios/.ssh/id_dsa 
192.168.200.150 '/usr/nagios/plugins/check_log -F 
/var/log/youmail/login.log -O 
/home/nagios/192.168.200.150.var.log.login.server.seek -C "No 
ManagedConnections available within configured blocking timeout" '

Any ideas? I really need a way to check log files for text and so far 
the only thing that works reliably is if I'm just checking for a single 
word and in all of my cases I need to check to phrases.

I've also tried check_logs.pl and check_log3 and neither of those work 
either.

Thanks,
Robert

Olivier 'Babar' Raginel wrote:
> 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,
> 





More information about the Nagiosplugin-help mailing list