[Nagiosplug-help] spacing in regex when querying

Venkatesh venki_lin at fastmail.us
Thu Oct 5 18:25:39 CEST 2006


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,

HELP ME !!!

thanks in advance

regards
venki

-- 
  Venkatesh
  venki_lin at fastmail.us

-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free





More information about the Help mailing list