After selecting the data source, class name is coming empty in PD

  • KM03793196
  • 31-Mar-2021
  • 31-Mar-2021

Summary

After selecting the data source, class name is coming empty in PD

Error

After selecting the data source, class name is coming empty in PD

 

in pmi.log 

2021-03-25 11:59:16,265[ajp-/127.0.0.1:8009-62] DEBUG: com.hp.pmi.rest.helper.DataHandler:getClassNames() -> Filtered classes list is empty
2021-03-25 11:59:16,266[ajp-/127.0.0.1:8009-62] INFO : com.hp.pmi.rest.helper.DataHandler:getClassNames() -> The list of classes from GetClasses method is []

Cause

PD would fetch Server name/system name from RTSM. It will be primaryDNSname (FQDN) of server. 
but sometimes or if you change the performance dashboard mappings setting in Administrations->opertation console, then it will fecth the instance ID accrodingly.
 
if there is miss match with system name/server name and InstanceName then PD wont show the class name is dashboard. 
 
you can check the log file by enabling the TRACE for PMI log. sample example log given below. 
 
INFO : com.hp.pmi.rest.helper.DataHandler:getClassNames() -> The list of the instances obtained from RTSM is [OBM]
DEBUG: com.hp.pmi.rest.helper.DataHandler:getOnlyInstanceNameWithOutSeparator() -> Getting only instance name without separator 
DEBUG: com.hp.pmi.rest.helper.DataHandler:getOnlyInstanceNameWithOutSeparator() -> Instance name with separator is : OBM
TRACE: com.hp.pmi.rest.helper.DataHandler:getOnlyInstanceNameWithOutSeparator() -> No HA Systems available. System name is  : obm2.abc.com
INFO : com.hp.pm.core.adapter.metric.AbstractMetricAdapter:filterClasses() -> AbstractMetricAdapter:filterClasses() instanceNames value is --> [OBM]
TRACE: com.hp.pm.core.adapter.metric.AbstractMetricAdapter:filterClasses() -> InstanceName is : OBM
TRACE: com.hp.pm.core.adapter.metric.AbstractMetricAdapter:filterClasses() -> Class Name is : DISK
TRACE: com.hp.pm.core.adapter.metric.AbstractMetricAdapter:filterClasses() -> DS ClassInfo Instances is : [dm-0, dm-1, dm-2, dm-3, dm-4, dm-5, dm-6, dm-7, dm-8, dm-9, sda]
RACE: com.hp.pm.core.adapter.metric.AbstractMetricAdapter:filterClasses() -> InstanceName is : OBM
TRACE: com.hp.pm.core.adapter.metric.AbstractMetricAdapter:filterClasses() -> Class Name is : NETIF

Fix

Check what is the instance ID definitation given for respective CI in Administrations->Operations Console->performace dashboard mappings
usually PrimaryDNS for computer/unix CI types.