Restmon - Json schema uploaded successfully but not listing in MCS template
search cancel

Restmon - Json schema uploaded successfully but not listing in MCS template

book

Article ID: 142519

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Restmon - Json schema uploaded successfully but not listed in the MCS template.

We have prepared the schema and uploaded it in restmon but that is not reflected in the MCS template.

When we add the schema with 1 or 2 attributes, it is showing properly but more attributes are not showing.

 

 

Environment

UIM 20.x

Restmon probe

Cause

This is caused by using the same QOS name for all of the attributes

Resolution

Change the QoS names to unique names.

 

See the attached full file examples:

 

Example not working:

  "metrics": [
   {
    "xml_ns": "",
    "attributes": {
     "uim": {
         "conversion": "Suspended:0, yes:1, disabled:2, no:3",
      "defaultpublishing": "true",
      "qos_name": "QOS_WM_SERVICE_STATE",
      "qos_desc": "State",
      "qos_abbr": "State",
      "metric_type": "1.4:1",
      "qos_unit": "State",
      "source": "%hostname",
    "target": "Example.target.example:example"
     }
    },
    
    "value": "$.notIdealSchedulerList[0].actualStatus",
  "url": "api",
  "group": "group",
    "helptext" : "Suspended:0, yes:1, disabled:2, no:3"
   },
   {
    "xml_ns": "",
    "attributes": {
     "uim": {
         "conversion": "Suspended:0, yes:1, disabled:2, no:3",
      "defaultpublishing": "true",
      "qos_name": "QOS_WM_SERVICE_STATE",
      "qos_desc": "State",
      "qos_abbr": "State",
      "metric_type": "1.4:1",
      "qos_unit": "State",
      "source": "%hostname",
    "target": "Example.target.example:example"
     }
    },
    
    "value": "$.notIdeal_JDBC_PollingNotifications[0].idealNotificationEnabled",
  "url": "api",
  "group": "grouos",
    "helptext" : "Suspended:0, yes:1, disabled:2, no:3"
   },

 

 

example working:

  "metrics": [
   {
    "xml_ns": "",
    "attributes": {
     "uim": {
         "conversion": "Suspended:0, yes:1, disabled:2, no:3",
      "defaultpublishing": "true",
      "qos_name": "QOS_WM_SERVICE_STATE",
      "qos_desc": "State",
      "qos_abbr": "State",
      "metric_type": "1.4:1",
      "qos_unit": "State",
      "source": "%hostname",
    "target": "Example.target.example:example"
     }
    },
    
    "value": "$.notIdealSchedulerList[0].actualStatus",
  "url": "api",
  "group": "group",
    "helptext" : "Suspended:0, yes:1, disabled:2, no:3"
   },
   {
    "xml_ns": "",
    "attributes": {
     "uim": {
         "conversion": "Suspended:0, yes:1, disabled:2, no:3",
      "defaultpublishing": "true",
      "qos_name": "QOS_WM_SERVICE_SERVICEREQUESTNOTIFICATION_STATE",
      "qos_desc": "State",
      "qos_abbr": "State",
      "metric_type": "1.4:1",
      "qos_unit": "State",
      "source": "%hostname",
    "target": "Example.target.example:example"
     }
    },
    
    "value": "$.notIdeal_JDBC_PollingNotifications[0].idealNotificationEnabled",
  "url": "api",
  "group": "groups",
    "helptext" : "Suspended:0, yes:1, disabled:2, no:3"
   },

Attachments

1578060675940__working-1servicewm_schema.json get_app
1578060472666__not-working-appwm_schema.json get_app