Re: check_http with spaces problem

Claudio Kuenzler <[email protected]>
Newsgroups gmane.network.nagios.user
Message-ID <CAF-yqggd5xXGv6QohgbLS7aG8W5BFKYQ=ep3gz4=sN9iisvEkw@mail.gmail.com>
>
> If I use -R "Web" the response is ok but if i use -R "Web somethin" it
> returns error!
>

Because the pattern needs to exist in the source code.

./check_http -H granma.gr -u /index.html -R "Web somethin"
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

./check_http -H granma.gr -u /index.html -R "Web Design"
HTTP OK: HTTP/1.1 200 OK - 4342 bytes in 0.125 second response time
|time=0.124846s;;;0.000000 size=4342B;;;0




>
>
> 2013/5/9 Claudio Kuenzler <[email protected]>
>
>>
>> Sun May 5 22:29:03 EEST 2013 /usr/lib64/nagios/plugins/check_http -H
>>> granma.gr -u http://granma.gr/index.html -R "Web " -w 10 -c 20
>>> Name or service not known HTTP CRITICAL - Unable to open TCP socket
>>>
>>
>> You have to break up the -u argument. -u expects the path, not the
>> complete URI. So in this case:
>>
>> /usr/lib64/nagios/plugins/check_http -H granma.gr -u /index.html -R
>> "Web" -w 10 -c 20
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>>
>> _______________________________________________
>> Nagios-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may

_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.