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

VmwareConfigBuilder is not generating a valid graph templates file.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.12.1
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      OpenNMS 1.12.0 Installed on CentOS 6.4 x86_64 through RPMs.

      Description

      After auto generate the configuration files for the VMWare collector, there are some issues that prevents the correct parsing of the graph templates.

      1) The last element of the template list, should not contain ", \", for example:
      ...
      vmware5.DaStTlRdLyAvg, \
      vmware5.DaStTlWeLyAvg, \
      vmware5.DaStWeAvg, \

      report.vmware5.CpuCoreUnAvg.name=CpuCoreUnAvg
      report.vmware5.CpuCoreUnAvg.columns=CpuCoreUnAvg
      ...

      It should be:
      ...
      vmware5.DaStTlRdLyAvg, \
      vmware5.DaStTlWeLyAvg, \
      vmware5.DaStWeAvg

      report.vmware5.CpuCoreUnAvg.name=CpuCoreUnAvg
      report.vmware5.CpuCoreUnAvg.columns=CpuCoreUnAvg
      ...

      2) The last line of the graph template definition should not end with "\", for example:

      report.vmware5.CpuCoreUnAvg.name=CpuCoreUnAvg
      report.vmware5.CpuCoreUnAvg.columns=CpuCoreUnAvg
      report.vmware5.CpuCoreUnAvg.propertiesValues=vmware5CpuName
      report.vmware5.CpuCoreUnAvg.type=vmware5Cpu
      report.vmware5.CpuCoreUnAvg.command=--title="CpuCoreUnAvg

      {vmware5CpuName}" \
      --vertical-label="CpuCoreUnAvg" \
      DEF:xxx={rrd1}:CpuCoreUnAvg:AVERAGE \
      LINE2:xxx#0000ff:"CpuCoreUnAvg" \
      GPRINT:xxx:AVERAGE:"Avg
      : %8.2lf %s" \
      GPRINT:xxx:MIN:"Min
      : %8.2lf %s" \
      GPRINT:xxx:MAX:"Max
      : %8.2lf %s
      n" \

      It should be:

      report.vmware5.CpuCoreUnAvg.name=CpuCoreUnAvg
      report.vmware5.CpuCoreUnAvg.columns=CpuCoreUnAvg
      report.vmware5.CpuCoreUnAvg.propertiesValues=vmware5CpuName
      report.vmware5.CpuCoreUnAvg.type=vmware5Cpu
      report.vmware5.CpuCoreUnAvg.command=--title="CpuCoreUnAvg {vmware5CpuName}

      " \
      --vertical-label="CpuCoreUnAvg" \
      DEF:xxx=

      {rrd1}

      :CpuCoreUnAvg:AVERAGE \
      LINE2:xxx#0000ff:"CpuCoreUnAvg" \
      GPRINT:xxx:AVERAGE:"Avg
      : %8.2lf %s" \
      GPRINT:xxx:MIN:"Min
      : %8.2lf %s" \
      GPRINT:xxx:MAX:"Max
      : %8.2lf %s
      n"

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: