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

Not evaluating threshold for data collected by HttpCollector

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.10.14
    • Fix Version/s: 17.0.0
    • Component/s: Thresholding
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Ubuntu Server 12.04, Java 1.7.0_65 Oracle Corporation

      Description

      I'm collecting data via HttpCollector. The data is the number of the year retrieved from the UPS Status web page. OpenNMS writes this number to the file mgeYear.jrb. I'm able to graph this data. I'm not able to trigger event based on the threshold, because Thresholding subsystem can't find data file.

      Below I have put log output for the one node.

      2014-08-27 13:37:12,870 INFO [CollectdScheduler-70 Pool-fiber69] ThresholdingSet: applyThresholds: Processing threshold mgeYear :

      {evaluator=low, dsName=mgeYear, dsType=node, evaluators=[ {ds=mgeYear, value=2013.0, rearm=2014.0, trigger=1}

      ]}
      2014-08-27 13:37:12,870 WARN [CollectdScheduler-70 Pool-fiber69] CollectionResourceWrapper: getAttributeValue: can't find attribute called mgeYear on node[968]
      2014-08-27 13:37:12,870 INFO [CollectdScheduler-70 Pool-fiber69] ThresholdingSet: applyThresholds: Could not get data source value for 'mgeYear'. Not evaluating threshold.
      2014-08-27 13:37:14,931 DEBUG [CollectdScheduler-70 Pool-fiber3] HttpCollector: processResponse: adding found numeric attribute: HttpAttribute: mgeYear:gauge32:2010
      2014-08-27 13:37:14,931 DEBUG [CollectdScheduler-70 Pool-fiber3] HttpCollector$HttpCollectionAttribute: Visiting attribute HttpAttribute: mgeYear:gauge32:2010
      2014-08-27 13:37:14,931 DEBUG [CollectdScheduler-70 Pool-fiber3] OneToOnePersister: Persisting HttpAttribute: mgeYear:gauge32:2010
      2014-08-27 13:37:14,931 DEBUG [CollectdScheduler-70 Pool-fiber3] OneToOnePersister: Storing attribute HttpAttribute: mgeYear:gauge32:2010
      2014-08-27 13:37:14,932 INFO [CollectdScheduler-70 Pool-fiber3] RrdUtils: createRRD: creating RRD file /var/lib/opennms/rrd/snmp/968/mgeYear.jrb
      2014-08-27 13:37:14,932 INFO [CollectdScheduler-70 Pool-fiber3] RrdUtils: updateRRD: updating RRD file /var/lib/opennms/rrd/snmp/968/mgeYear.jrb with values '1409139435:2010'

      Thresholding for this collectd package has been turned on in the collectd-configuration.xml file.

      <service name="TimeSync" interval="300000" user-defined="false" status="on">
      <parameter key="collection" value="time-sync"/>
      <parameter key="retry" value="1"/>
      <parameter key="timeout" value="5000"/>
      <parameter key="thresholding-enabled" value="true"/>
      </service>

      Under folder /var/lib/opennms/rrd/snmp/968 I have other files collected via snmp protocol. Thresholding for them is working correctly.

      ls -l /var/lib/opennms/rrd/snmp/968
      total 672
      rw-rr- 1 root root 80236 Aug 27 14:57 mgeBattLevel.jrb
      rw-rr- 1 root root 80236 Aug 27 14:57 mgeBattRemainTime.jrb
      rw-rr- 1 root root 80236 Aug 27 14:57 mgeEnvHumidity.jrb
      rw-rr- 1 root root 80236 Aug 27 14:57 mgeEnvTemperature.jrb
      rw-rr- 1 root root 80236 Aug 27 14:57 mgeInputV.jrb
      rw-rr- 1 root root 80236 Aug 27 14:57 mgeLoad.jrb
      rw-rr- 1 root root 80236 Aug 27 14:57 mgeOutputV.jrb
      rw-rw-r- 1 root root 80236 Aug 27 14:57 mgeYear.jrb

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              damian.wydymus@wask.wroc.pl Damian Wydymus
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: