<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 1 Sep 2005, at 11:09, <A href="mailto:jari.soininen@arenapartners.fi">jari.soininen@arenapartners.fi</A> wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BR><FONT size="2" face="sans-serif">I'm newbie with nagios. Trying to set up check_http for url like this:</FONT> <BR> <BR><FONT size="2" face="sans-serif"><A href="http://www3.ilkka.fi/servlet/page?_pageid=5347&_dad=portal30&_schema=PORTAL30">http://www3.ilkka.fi/servlet/page?_pageid=5347&_dad=portal30&_schema=PORTAL30</A></FONT> <BR> <BR><FONT size="2" face="sans-serif">Checked two possibilites shown below but always the result is same:</FONT> <BR> <BR><FONT size="2" face="sans-serif">Current Status:        </FONT> <BR><FONT size="2" face="sans-serif">  WARNING    </FONT> <BR><FONT size="2" face="sans-serif">Status Information:        HTTP WARNING: HTTP/1.1 400 Bad Request</FONT> <BR> <BR><FONT size="2" face="sans-serif">candidate 1:</FONT> <BR> <BR><FONT size="2" face="sans-serif">        check_command                   check_http!www3.ilkka.fi!/servlet/page?_pageid=5347%26_dad=portal30%26_schema=PORTAL30!Mielipide</FONT> <BR> <BR><FONT size="2" face="sans-serif">candidate 2:</FONT> <BR> <BR><FONT size="2" face="sans-serif">       check_command                   check_http!-H www3.ilkka.fi -u /servlet/page?_pageid=5347%26_dad=portal30%26_schema=PORTAL30 -s Mielipide</FONT> <BR> <BR><FONT size="2" face="sans-serif">This works fine from command line!</FONT> <BR> <BR><FONT size="2" face="sans-serif"># ./check_http -H www3.ilkka.fi -u /servlet/page?_pageid=5347%26_dad=portal30%26_schema=PORTAL30 -s Mielipide</FONT> <BR><FONT size="2" face="sans-serif">HTTP OK HTTP/1.1 200 OK - 0.044 second response time |time=0.044249s;;;0.000000 size=42492B;;;0</FONT> <BR> <BR><FONT size="2" face="sans-serif">as well this works fine:</FONT> <BR><FONT size="2" face="sans-serif"># ./check_http -H www3.ilkka.fi -u /servlet/page?_pageid=5347%26_dad=portal30%26_schema=PORTAL30 -s wrongword</FONT> <BR><FONT size="2" face="sans-serif">CRITICAL - string not found|time=0.084240s;;;0.000000 size=42492B;;;0</FONT> <BR> <BR><FONT size="2" face="sans-serif"></FONT></BLOCKQUOTE></DIV><BR><DIV><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Jari,</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">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).</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">See here for more information: <FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;"><A href="http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#command">http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#command</A></SPAN></FONT></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Don't worry - it is a common newbie trip up!</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">Ton</SPAN></FONT></DIV></BODY></HTML>