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

maxRetCode in HttpDetector does not work

    XMLWordPrintable

Details

    • 3936
    • Horizon - August 15th 2018, Horizon - August 22nd 2018

    Description

      While trying to work around #3935, I configured

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <foreign-source date-stamp="2010-06-29T13:15:30.494+02:00" name="test" xmlns="http://xmlns.opennms.org/xsd/config/foreign-source">
      <scan-interval>1d</scan-interval>
      <detectors>
      <detector class="org.opennms.netmgt.provision.detector.simple.HttpDetector" name="http8080">
      <parameter value="8080" key="port"/>
      <parameter value="index2.html" key="url"/>
      <parameter value="200" key="maxRetCode"/>
      </detector>
      </detectors>
      <policies/>
      </foreign-source>

      The server does not provide "/index2.html":

      wget http://10.2.50.105:8080/index2.html
      -2010-06-29 13:18:22- http://10.2.50.105:8080/index2.html
      Connecting to 10.2.50.105:8080... connected.
      HTTP request sent, awaiting response... 404 Not Found
      2010-06-29 13:18:22 ERROR 404: Not Found.

      However, the service is detected.

      Attachments

        Activity

          People

            patrick.schweizer Patrick Schweizer
            dk@in-telegence.net Dominik Klein (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.