Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageperl
title/usr/local/nmis9/conf/Config.nmis
'node_summary_field_list' => 'host,uuid,customer,device_ci,businessService,serviceStatus,snmpdown,wmidown',


3) add Add a custom index in Config.nmis.


Config.nmis::database:: 

Code Block
languageperl
title/usr/local/nmis9/conf/Config.nmis
'custom_indices' => {
      'nodes' => [
          [ {'configuration.device_ci' => 1}, { unique => 1, partialFilterExpression => { "configuration.device_ci" => { '$exists' => true } }  }] 
        ]
}

...

Code Block
title/usr/local/omk/lib/json/admin/table_schemas/admin_node-ip.json
{
   "name": "nodes.configuration.device_ci",
   "label": "Device CI",
   "cell": "String",
   "editable": false,
   "search": "iregex"
}


6) Add the Device Ci CI to the opCharts node table schema

...

Code Block
title/usr/local/omk/lib/json/opCharts/table_schemas/opCharts_node-list.json
{
   "name": "nodes.configuration.device_ci",
   "label": "Device CI",
   "cell": "String",
   "editable": false,
   "search": "iregex"
}


7) Add the Device Ci CI to the admin edit node fields. (admin_nodes.json file will need to be created in the "/usr/local/omk/conf/form_schemas/" directory )

...

Code Block
title/usr/local/omk/conf/form_schemas/admin_nodes.json
{"label": "Device Ci",
 "description": "Edit in conf/form_schemas/admin_nodes.json",
 "component": ["node_admin"],
 "tags": ["node"],
 "schema": {
         "configuration.device_ci": {
                 "title": "Device CI",
                 "type": "Text"}
 }}

}


8) Add the device_ci Device CI to omk/opCharts/nodes so it shows in the node info table

...