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

Backshift shows the name of the string variables when the value is not available

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 18.0.2, Meridian-2016.1.3
    • 18.0.3, Meridian-2016.1.4
    • Graphing
    • Security Level: Default (Default Security Scheme)
    • None
    • Horizon - Nov 2nd

    Description

      Let's consider for example the following graph templates:

      report.ruckus.ap.stations.name=Ruckus AP Stations
      report.ruckus.ap.stations.columns=rzdAPNumSta
      report.ruckus.ap.stations.type=ruckusZDWLANAPEntry
      report.ruckus.ap.stations.propertiesValues=rzdAPIPAddress,rzdAPDescripion
      report.ruckus.ap.stations.command=--title="Ruckus AP Stations - {rzdAPIPAddress} {rzdAPDescripion}" \
       --vertical-label="Number of Stations" \
       DEF:var={rrd1}:rzdAPNumSta:AVERAGE \
       AREA:var#73d216 \
       LINE1:var#4e9a06:"Stations " \
       GPRINT:var:AVERAGE:"Avg  \\: %8.2lf %s" \
       GPRINT:var:MIN:"Min  \\: %8.2lf %s" \
       GPRINT:var:MAX:"Max  \\: %8.2lf %s\\n"
      

      The template is referencing two string properties. When using RRDtool, the title is rendered properly. I mean, if the value of the variable is null (or the variable doesn't exist on the resource), it is rendered as a empty string (as expected).

      When using Backshift, instead of an empty string, you'll see the name of the string property, which can confuse users (see backshift-issue-with-string-properties.png, the resource doesn't have a value for rzdAPDescripion).

      Attachments

        Activity

          People

            j-white Jesse White
            agalue Alejandro Galue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: