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

Collection results via Minion is limited to MAX_INT

    XMLWordPrintable

    Details

    • Sprint:
      Horizon - March 6th 2019, Horizon - March 13th 2019

      Description

      No Minion:

      admin@opennms> collect -l Default -n 3213 org.opennms.protocols.xml.collector.XmlCollector node collection=ibm-storwize-stats
      ................................GenericTypeResource[node=NodeLevelResource[nodeId=3213, path=null], instance=BackendVolumeStats_0, resourceType=ResourceType [name=IBMStorwizeMdiskXML, label=IBM Storwize mdisk, resourceLabel=${mdisk} on ${PoolName}, persistenceSelectorStrategy=PersistenceSelectorStrategy [class=org.opennms.netmgt.collection.support.PersistAllSelectorStrategy, parameters=[]], storageStrategy=StorageStrategy [class=org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy, parameters=[Parameter [key=sibling-column-name, value=InstanceID], Parameter [key=replace-all, value=s/^BackendVolumeStats_//]]]],storageStrategy=org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy@979072c, persistenceSelectorStrategy=org.opennms.netmgt.collection.support.PersistAllSelectorStrategy@217ec03]
       Group: ibm-storwize-xml
       Attribute[KBTrans:5.81255778977E11]
       Attribute[mdiskID:
      BackendVolume statistics for 0
      ]
       Attribute[KBRead:4.65450971582E11]
       Attribute[KBWrite:1.15804807395E11]
       Attribute[TotalIOs:4.311464803E9]
       Attribute[IOTime:1.8749780162E10]
       Attribute[WriteIOTime:6.154092825E9]
       Attribute[ReadIOTime:1.2595687337E10]
       Attribute[WriteIOs:4.29475227E8]
       Attribute[ReadIOs:3.881989576E9]
       Attribute[WriteHitIOs:NaN]
       Attribute[ReadHitIOs:NaN]
      <...>
      

      Minion:

      admin@opennms> collect -l someMinion  -n 3213 org.opennms.protocols.xml.collector.XmlCollector node collection=ibm-storwize-stats
      ................GenericTypeResource[node=NodeLevelResource[nodeId=3213, path=null], instance=BackendVolumeStats_0, resourceType=ResourceType [name=IBMStorwizeMdiskXML, label=IBM Storwize mdisk, resourceLabel=${mdisk} on ${PoolName}, persistenceSelectorStrategy=PersistenceSelectorStrategy [class=org.opennms.netmgt.collection.support.PersistAllSelectorStrategy, parameters=[]], storageStrategy=StorageStrategy [class=org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy, parameters=[Parameter [key=sibling-column-name, value=InstanceID], Parameter [key=replace-all, value=s/^BackendVolumeStats_//]]]],storageStrategy=org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy@5c5e485, persistenceSelectorStrategy=org.opennms.netmgt.collection.support.PersistAllSelectorStrategy@1fd89ed8]
              Group: ibm-storwize-xml
                      Attribute[KBTrans:2.147483647E9]
                      Attribute[mdiskID:
      BackendVolume statistics for 0
      ]
                      Attribute[KBRead:2.147483647E9]
                      Attribute[KBWrite:2.147483647E9]
                      Attribute[TotalIOs:2.147483647E9]
                      Attribute[IOTime:2.147483647E9]
                      Attribute[WriteIOTime:2.147483647E9]
                      Attribute[ReadIOTime:2.147483647E9]
                      Attribute[WriteIOs:4.29581537E8]
                      Attribute[ReadIOs:2.147483647E9]
                      Attribute[WriteHitIOs:NaN]
                      Attribute[ReadHitIOs:NaN]
      

       
      Update: This also affects datacollection via JDBC, and given that, I assume most other methods:

      No Minion:

      admin@opennms> collect -l Default -n 460 org.opennms.netmgt.collectd.JdbcCollector server driver=com.mysql.jdbc.Driver url=jdbc:mysql://OPENNMS_JDBC_HOSTNAME:3306/test 
      
      NodeLevelResource[nodeId=460, path=null]
              Group: Q_MyUptime
                      Attribute[MyUptime:196993.0]
              Group: Q_MyBytesReceived
                      Attribute[MyBytesReceived:8.020693335E9]
              Group: Q_MyBytesSent
                      Attribute[MyBytesSent:1.3518049576E10]
      

      With Minion:

      admin@opennms> collect -l Minion -n 460 org.opennms.netmgt.collectd.JdbcCollector server driver=com.mysql.jdbc.Driver url=jdbc:mysql://OPENNMS_JDBC_HOSTNAME:3306/test 
      
      NodeLevelResource[nodeId=460, path=null]
              Group: Q_MyUptime
                      Attribute[MyUptime:196929.0]
              Group: Q_MyBytesReceived
                      Attribute[MyBytesReceived:2.147483647E9]
              Group: Q_MyBytesSent
                      Attribute[MyBytesSent:2.147483647E9]
      

        Attachments

          Activity

            People

            • Assignee:
              cgorantla Chandra Gorantla
              Reporter:
              dino2gnt Dino Yancey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: