[Nagiosplug-help] spacing in regex when querying

Andreas Ericsson ae at op5.se
Fri Oct 6 15:06:37 CEST 2006


Venkatesh wrote:
> hello all,
> 
> i am using check_file to check for error regex in a server.log file, but
> when give this query it takes only the first word and not the rest 
> 
> check_by_ssh -H 10.0.0.1 -C '/usr/bin/nagios/plugins/check_file -f
> /home/server.log -e java.net.NoRouteToHostException: No route to host'
> 
> but the output will show only java.net.NoRouteToHostException:, 
> 
> i want even to show "No route to host" also,
> 
> how will this recognize spaces? i am unable to do this, please help me
> out 
> 
> i used \s and %20 between them, but everything failed,
> 

Did you try putting the entire regex-string in double-quotes?

> HELP ME !!!
> 

Stop shouting please. It makes me feel you will be neither polite nor 
precise and makes me disinclined toward helping you.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231




More information about the Help mailing list