<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Alexandre,<br>
    Have you checked directory/file permissions and ownership of
    webinject?<br>
    Try to run the webinject through nagios user and see if it passes.<br>
    i.e<br>
    su - nagios<br>
    and run the webinject:<br>
    /usr/local/nagios/libexec/contrib/webinject/webinject.pl -c
    config-myapplication.xml testmyapplication.xml<br>
    <br>
    Hope this will help you.<br>
    Nadeem-<br>
    <br>
    On 9/17/2010 6:30 PM, alexandre fedi wrote:
    <blockquote cite="mid:BAY152-w31C951CDE4BA220B22FD1957B0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      Hi,<br>
      <br>
      I've got a problem with "Webinject" Addon for Nagios.<br>
      <br>
      <span id="result_box" class="long_text"><span
          style="background-color: rgb(255, 255, 255);" title="">So, i
          just want to test authentication on an intranet application.<br>
          <br>
        </span><span style="" title="">I configured everything
          correctly, and when I run the following command</span></span>
      : "./webinject.pl -c config-myapplication.xml
      testmyapplication.xml", <span id="result_box" class="long_text
        short_text"><span style="" title="">the result is following</span></span>
      :<br>
      <br>
      WebInject OK - All tests passed successfully in 1.368 seconds
      |time=1.368;20;;0<br>
      <br>
      Everything seems to be OK, but, when I configure the same test in
      Nagios, I have this result on the web interface : (Return code of
      13 is out of bounds) <br>
      <br>
      In nagios.log : [1284730251] Warning: Return code of 13 for check
      of service 'HTTP_SCENARIO' on host 'sp09400001' was out of bounds.<br>
      <br>
      My commands file :<br>
      <br>
      define command {<br>
          command_name    check_webinject<br>
          command_line   
      /usr/local/nagios/libexec/contrib/webinject/webinject.pl -c $ARG1$
      $ARG2$<br>
      }<br>
      <br>
      My service definition :<br>
      <br>
      define service{<br>
              use                             generic-service<br>
              host_name                       sp09400001<br>
              service_description             HTTP_SCENARIO<br>
              check_command                  
      check_webinject!config-myapplication.xml!testmyapplication.xml<br>
              }<br>
      <br>
      Can somebody help me please ?<br>
      <br>
      Thanks per Advance<br>
      <br>
      Alexandre<br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/novell-sfdev2dev">http://p.sf.net/sfu/novell-sfdev2dev</a></pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Nagiosplug-help mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
</pre>
    </blockquote>
  </body>
</html>