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

Remote poller dies when trying to use the PageSequenceMonitor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 16.0.0
    • Fix Version/s: 18.0.0, Meridian-2016.1.0
    • Component/s: Remote Polling
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:

      Description

      Remote poller aborts when it tries to activate a page sequence poll:

      2015-06-10 23:04:00,280 ERROR [PollerFrontEnd_Worker-7] o.o.n.p.r.s.DefaultPollerFrontEnd: Unexpected exception occurred while polling service ID 48041.
      org.opennms.core.xml.MarshallingResourceFailureException: Failed to marshal/unmarshal XML file while unmarshalling an object (PageSequence): javax.xml.bind.UnmarshalException
       - with linked exception:
      [Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.XMLMarshalException
      Exception Description: An error occurred unmarshalling the document
      Internal Exception: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.]; nested exception is javax.xml.bind.UnmarshalException
       - with linked exception:
      [Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.XMLMarshalException
      Exception Description: An error occurred unmarshalling the document
      Internal Exception: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.]
      	at org.opennms.core.xml.MarshallingExceptionTranslator.translate(MarshallingExceptionTranslator.java:73) ~[org.opennms.core.xml-16.0.0.jar:]
      	at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:242) ~[org.opennms.core.xml-16.0.0.jar:]
      	at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:197) ~[org.opennms.core.xml-16.0.0.jar:]
      	at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:190) ~[org.opennms.core.xml-16.0.0.jar:]
      	at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$PageSequenceMonitorParameters.parsePageSequence(PageSequenceMonitor.java:639) ~[opennms-services-16.0.0.jar:]
      	at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$PageSequenceMonitorParameters.<init>(PageSequenceMonitor.java:625) ~[opennms-services-16.0.0.jar:]
      	at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$PageSequenceMonitorParameters.get(PageSequenceMonitor.java:593) ~[opennms-services-16.0.0.jar:]
      

      The origin of the problem could be reduced to the following part of the poller-configuration.xml:

             <service name="hskaweb" interval="300000" user-defined="false" status="on">
                <parameter key="retry" value="1"/>
                <parameter key="timeout" value="6000"/>
                <parameter key="rrd-repository" value="/opt/opennms/share/rrd/response"/>
                <parameter key="rrd-base-name" value="hskaweb"/>
                <parameter key="ds-name" value="hskaweb"/>
                <parameter key="page-sequence">
                   <page-sequence xmlns="">
                      <page disable-ssl-verification="true" ds-name="hskawebpage1" host="www.hs-karlsruhe.de" http-version="1.1" method="GET" path="/hochschule.html" port="80" response-range="100-399" scheme="http" successMatch="(Hochschule|University)" virtual-host="www.hs-karlsruhe.de" xmlns=""/>
                      <page disable-ssl-verification="true" ds-name="hskawebpage2" host="www.hs-karlsruhe.de" http-version="1.1" method="GET" path="/iz" port="80" response-range="100-399" scheme="http" successMatch="Informationszentrum" virtual-host="www.hs-karlsruhe.de" xmlns=""/>
                      <page disable-ssl-verification="true" ds-name="hskawebpage3" host="www.hs-karlsruhe.de" http-version="1.1" method="GET" path="/123" port="80" response-range="100-399" scheme="http" successMatch="IZ" virtual-host="www.hs-karlsruhe.de" xmlns=""/>
                   </page-sequence>
                </parameter>
             </service>
      

      This part of the configuration works locally fine - but it fails for remote-polling.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                seth Seth Leger
                Reporter:
                gschreiner Guenther Schreiner
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: