Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10351

HTTP Detector does not accept a response without a reason as valid

    XMLWordPrintable

    Details

    • Sprint:
      Horizon 2020 - Sept 16-30

      Description

      HttpMonitor Config was working fine with tomcat7 and http service was getting detected however as we have updated to tomcat 8.5 http service is not getting detected unless we set connector properties as sendReasonPhrase=true, the difference in the curl response is like below in compare to tomcat7 and tomct 8.5 (withoutsend Reson Phrase parameter set)

      tomcat7 gives ok in its header and tomcat8.5 does not.

      however option for sendreson phase will be deprecated and removed from tomcat9 and even this option will not be available (https://tomcat.apache.org/tomcat-8.5-doc/config/http.html)

      I am not sure why httpMonitor in openNms is not able to detect the http service even the snmpwalk output see port 80 available (both with and without send reason phrase)

      in poller-configuration.xml looks like below for http

      <service name="HTTP" interval="300000" user-defined="false" status="on">
       <parameter key="retry" value="1"/>
       <parameter key="timeout" value="3000"/>
       <parameter key="port" value="80"/>
       <parameter key="url" value="/"/>
       <parameter key="rrd-repository" value="/var/lib/opennms/rrd/response"/>
       <parameter key="rrd-base-name" value="http"/>
       <parameter key="ds-name" value="http"/>
       </service>

      even we tried setting 

      <parameter key="response-text" value="~\bOK\b"/>

      and 

      <parameter key="response" value="200"/> 

      however it did not help, it will only detect http service in tomcat 8.5 if we have sendreson phase turn on in connector definition insider server.xml

      Kindly help to understand this behaviour here and possible solution for this without any change on client side.

       

      openNms version info:

       

        Attachments

          Activity

            People

            Assignee:
            ranger Benjamin Reed
            Reporter:
            ruchir Ruchir Bharadwaj (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration