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

collectd log entries could be enhanced

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.8.12
    • Fix Version/s: 1.9.90
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      It would be nice to have the collectd logs include the package for which a collection was running. Since you can define multiple packages in collectd-configuration.xml with a service which could each have their own collection package, it would be nice to know which particular package was gathering statistics.

      The attached patch adds the package name for when a collection starts. It also logs a warning when the collection failed due to a CollectionException or other Exception. And finally, it adds an informational message if the collection has successfully finished its run.

      An example of what it looks like in logs:

      2011-06-24 09:54:42,499 INFO [CollectdScheduler-100 Pool-fiber62] CollectableService: run: starting new collection for 172.16.79.52/SNMP/UnixTeam_GlobalZones_Extra
      2011-06-24 09:58:43,122 WARN [CollectdScheduler-100 Pool-fiber62] CollectableService: run: failed collection for 172.16.79.52/SNMP/UnixTeam_GlobalZones_Extra
      2011-06-24 09:58:43,122 ERROR [CollectdScheduler-100 Pool-fiber62] CollectableService: Timeout retrieving SnmpCollectors for 172.16.79.52 ....

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              ronald.roskens@biworldwide.com Ron Roskens
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: