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

ICMP availability with custom packet size doesn't work with JNI

    XMLWordPrintable

    Details

      Description

      With the following configuration the services goes down with unknown reason. The service is configured in the poller-configuration.xml as follows:

        <service name="ICMP-512" interval="30000" user-defined="false" status="on">
          <parameter key="retry" value="2"/>
          <parameter key="timeout" value="3000"/>
          <parameter key="packet-size" value="512"/>
          <parameter key="rrd-repository" value="/opt/opennms/share/rrd/response"/>
          <parameter key="rrd-base-name" value="icmp512"/>
          <parameter key="ds-name" value="icmp512"/>
        </service>
        <service name="ICMP-1455" interval="30000" user-defined="false" status="on">
          <parameter key="retry" value="2"/>
          <parameter key="timeout" value="3000"/>
          <parameter key="packet-size" value="1455"/>
          <parameter key="rrd-repository" value="/opt/opennms/share/rrd/response"/>
          <parameter key="rrd-base-name" value="icmp1455"/>
          <parameter key="ds-name" value="icmp1455"/>
        </service>
      
        <monitor service="ICMP-512" class-name="org.opennms.netmgt.poller.monitors.IcmpMonitor"/>
        <monitor service="ICMP-1455" class-name="org.opennms.netmgt.poller.monitors.IcmpMonitor"/>
      

      Strange behavior can bee seen in the attached TCP dump files, the 1455 ICMP is not send from OpenNMS when it is configured to use the JniPinger.

      JICMP has installed:

      [root@amu249 yum.repos.d]# yum info jicmp 
      Loaded plugins: product-id, rhnplugin, security, subscription-manager, versionlock 
      This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 
      This system is receiving updates from RHN Classic or RHN Satellite. 
      Installed Packages 
      Name        : jicmp 
      Arch        : x86_64 
      Version     : 1.4.3 
      Release     : 1 
      Size        : 42 k 
      Repo        : installed 
      From repo   : opennms-snapshot-rhel7 
      Summary     : Java interface to ICMP (ping) 
      License     : GPL 
      Description : FIXME: better description  :) 
      
      Available Packages 
      Name        : jicmp 
      Arch        : i386 
      Version     : 1.4.1 
      Release     : 1 
      Size        : 45 k 
      Repo        : opennms-snapshot-rhel7 
      Summary     : Java interface to ICMP (ping) 
      License     : GPL 
      Description : FIXME: better description  :) 
      

        Attachments

        1. icmp_jna.pcap
          1.12 MB
        2. icmp_jni.pcap
          7.69 MB

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              indigo Ronny Trommer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: