[Nagiosplug-help] check_http and bad request
Ton Voon
tonvoon at mac.com
Thu Sep 1 09:22:12 CEST 2005
On 1 Sep 2005, at 11:09, jari.soininen at arenapartners.fi wrote:
>
> I'm newbie with nagios. Trying to set up check_http for url like this:
>
> http://www3.ilkka.fi/servlet/page?
> _pageid=5347&_dad=portal30&_schema=PORTAL30
>
> Checked two possibilites shown below but always the result is same:
>
> Current Status:
> WARNING
> Status Information: HTTP WARNING: HTTP/1.1 400 Bad Request
>
> candidate 1:
>
> check_command check_http!www3.ilkka.fi!/
> servlet/page?_pageid=5347%26_dad=portal30%26_schema=PORTAL30!Mielipide
>
> candidate 2:
>
> check_command check_http!-H www3.ilkka.fi -
> u /servlet/page?_pageid=5347%26_dad=portal30%26_schema=PORTAL30 -s
> Mielipide
>
> This works fine from command line!
>
> # ./check_http -H www3.ilkka.fi -u /servlet/page?_pageid=5347%
> 26_dad=portal30%26_schema=PORTAL30 -s Mielipide
> HTTP OK HTTP/1.1 200 OK - 0.044 second response time |
> time=0.044249s;;;0.000000 size=42492B;;;0
>
> as well this works fine:
> # ./check_http -H www3.ilkka.fi -u /servlet/page?_pageid=5347%
> 26_dad=portal30%26_schema=PORTAL30 -s wrongword
> CRITICAL - string not found|time=0.084240s;;;0.000000 size=42492B;;;0
>
Jari,
This is more of a Nagios issue rather than a plugin issue. The
check_command check_http refers to a command in the checkcommands.cfg
file. In there will be definition of check_http to say what it should
do with the arguments (separated by ! in the check_command parameter).
See here for more information: http://nagios.sourceforge.net/docs/2_0/
xodtemplate.html#command
Don't worry - it is a common newbie trip up!
Ton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20050901/b371ec5d/attachment.html>
More information about the Help
mailing list