<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>If I use -R "Web" the response is ok but if i use -R "Web somethin" it returns error!</div>
</div></blockquote><div><br>Because the pattern needs to exist in the source code. <br><br>./check_http -H <a href="http://granma.gr">granma.gr</a> -u /index.html -R "Web somethin"<br>HTTP CRITICAL: HTTP/1.1 200 OK - pattern not found - 4342 bytes in 0.126 second response time |time=0.125853s;;;0.000000 size=4342B;;;0<br>
<br>./check_http -H <a href="http://granma.gr">granma.gr</a> -u /index.html -R "Web Design"<br>HTTP OK: HTTP/1.1 200 OK - 4342 bytes in 0.125 second response time |time=0.124846s;;;0.000000 size=4342B;;;0<br><br>
<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/9 Claudio Kuenzler <span dir="ltr"><<a href="mailto:ck@claudiokuenzler.com" target="_blank">ck@claudiokuenzler.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<br><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Sun May 5 22:29:03 EEST 2013 /usr/lib64/nagios/plugins/check_http -H <a href="http://granma.gr" target="_blank">granma.gr</a> -u <a href="http://granma.gr/index.html" target="_blank">http://granma.gr/index.html</a> -R "Web " -w 10 -c 20<br>



Name or service not known HTTP CRITICAL - Unable to open TCP socket<br></div></div></blockquote></div><div><br>You have to break up the -u argument. -u expects the path, not the complete URI. So in this case:<br><br>/usr/lib64/nagios/plugins/check_http -H <a href="http://granma.gr" target="_blank">granma.gr</a> -u /index.html -R "Web" -w 10 -c 20<br>


</div></div><br>
<br></div></div>------------------------------------------------------------------------------<br>
Learn Graph Databases - Download FREE O'Reilly Book<br>
"Graph Databases" is the definitive new guide to graph databases and<br>
their applications. This 200-page book is written by three acclaimed<br>
leaders in the field. The early access version is available now.<br>
Download your free book today! <a href="http://p.sf.net/sfu/neotech_d2d_may" target="_blank">http://p.sf.net/sfu/neotech_d2d_may</a><div class="im"><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></div></blockquote></div><br></div>
<br>------------------------------------------------------------------------------<br>
Learn Graph Databases - Download FREE O'Reilly Book<br>
"Graph Databases" is the definitive new guide to graph databases and<br>
their applications. This 200-page book is written by three acclaimed<br>
leaders in the field. The early access version is available now.<br>
Download your free book today! <a href="http://p.sf.net/sfu/neotech_d2d_may" target="_blank">http://p.sf.net/sfu/neotech_d2d_may</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>