[Nagiosplug-help] Check_http non english string

Vladimir B. vova190181 at gmail.com
Thu May 12 20:25:37 CEST 2011


Hello,

Thanks for the reply.
I am trying to look for a string in HEBREW.
I tried the following command to search for a string:

check_http -H $HOSTADDRESS$ -4 -f follow -s$STRING$

But there is no hebrew installed on the nagios machine and i prefer not
install it. Therefore i cannot use a hebrew string in the command.
I tried to search for the string using the REGEX (for example i tried to
look for the hebrew string "פתרונות עסקיים" on google.co.il. When looking in
the code of the page this Hebrew string can be found next to the word
SERVICES). I converted the string
to ASCII and i got this:
%D7%A4%D7%AA%D7%A8%D7%95%D7%A0%D7%95%D7%AA%20%D7%A2%D7%A1%D7%A7%D7%99%D7%99%D7%9D

I replaced the % with \x to use the string with REXEG

Then I tried using the following command:

check_http -H google.co.il -4 -f follow -r
\xD7\xA4\xD7\xAA\xD7\xA8\xD7\x95\xD7\xA0\xD7\x95\xD7\xAA\x20\xD7\xA2\xD7\xA1\xD7\xA7\xD7\x99\xD7\x99\xD7\x9D

It resulted in "PATTERN NOT FOUND"

Any ideas ?

Thanks in advance.



On Thu, May 12, 2011 at 4:28 PM, Erik Wasser <erik.wasser at iquer.net> wrote:

> On Thursday 12-05-2011 15:57:00 Vladimir B. wrote:
>
> > > I tried using the regex string command but it does'nt work.
> > Really ? No one ever tried it ? :)
> > Any ideas will be helpful.
>
> "...but it does'nt work..." is not an error message nor a useful
> description
> of what or what not happenend.
>
> What does you command look like? Maybe this is a encoding problem but
> without
> any details...
>
> --
> So long... Erik
>
>
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20110512/6a483e19/attachment.html>


More information about the Help mailing list