[Nagiosplug-help] Check_http non english string
Erik Wasser
erik.wasser at iquer.net
Fri May 13 13:29:50 CEST 2011
On Thursday 12-05-2011 20:25:37 Vladimir B. wrote:
> 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\xA
> 1\xD7\xA7\xD7\x99\xD7\x99\xD7\x9D
>
> It resulted in "PATTERN NOT FOUND"
Nice try. But I think the \x syntax is not working here. Searching for the
letter 'e' with the google.com page will reveal that:
Using the normal style:
% check_http -H google.com -4 -f follow -r 'e'
HTTP OK: HTTP/1.1 200 OK - 10137 bytes in 0.109 second response time |
time=0.108887s;;;0.000000 size=10137B;;;0
Using the \x style:
% check_http -H google.com -4 -f follow -r '\x65'
HTTP CRITICAL: HTTP/1.1 200 OK - pattern not found - 10115 bytes in 0.115
second response time |time=0.115077s;;;0.000000 size=10115B;;;0
I was looking in the source of check_http and they are using regcomp(). And
the manpage of regcomp links to regex and this manpage for regex says nothing
about a "\x" syntax.
At least I can't find anything about it
--
So long... Erik
More information about the Help
mailing list