check_http with spaces problem

Κοκμάδης Δημήτριος dkokmadis at gmail.com
Thu May 9 13:29:54 CEST 2013


Thank you for the answer,

The problem doesn't seem to be at the url but at the -R option

If I use -R "Web" the response is ok but if i use -R "Web somethin" it
returns error!


2013/5/9 Claudio Kuenzler <ck at claudiokuenzler.com>

>
> 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
> Nagios-users at lists.sourceforge.net
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130509/0263b9a6/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list