Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [Nagiosplug-help] check_by_ssh question

From: Robert Cole <robert.cole(at)support4linux.com>
Date: Wed Jun 27 2007 - 23:48:47 EDT


When I cut and paste the command from the error message and run it logged in as nagios from the monitoring server it works just fine but when nagios runs it it doesn't work.

Any ideas? Anyone?

nagios@ms1 ~ $ /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 -q "No ManagedConnections available within configured blocking timeout" ' Log check ok - 0 pattern matches found
nagios@ms1 ~ $

When nagios runs it I get this error on the monitoring web page:

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 -q "No ManagedConnections available within configured blocking timeout" '

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,
>
>



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 Wed Jun 27 23:46:52 2007
Do you need help?X

This archive was generated by hypermail 2.1.8 : Wed Jun 27 2007 - 23:50:01 EDT


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