...
Code Block | ||||
---|---|---|---|---|
| ||||
'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 | ||||
---|---|---|---|---|
| ||||
'custom_indices' => { 'nodes' => [ [ {'configuration.device_ci' => 1}, { unique => 1, partialFilterExpression => { "configuration.device_ci" => { '$exists' => true } } }] ] } |
...
Code Block | ||
---|---|---|
| ||
{ "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 | ||
---|---|---|
| ||
{ "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 | ||
---|---|---|
| ||
{"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
...