Versions Compared

Key

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

...

/usr/local/nmis9/bin/nmis-cli act=ensure_indexes debug=9



45)Add the Device Ci to the admin node table

...

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"
}


56)Add the Device Ci to the opCharts node table
/usr/local/omk/lib/json/opCharts/table_schemas/opCharts_node-list.json

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"
}


67)Add the Device 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 )
vi /usr/local/omk/conf/form_schemas/admin_nodes.json

...

Code Block
title/usr/local/omk/lib/json/opCharts/tableconf/form_schemas/opChartsadmin_node-listnodes.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"}
 }}

}


To add 8)Add the device_ci to omk/opCharts/nodes so it shows in the node info table
vi /usr/local/omk/lib/json/opCharts/table_schemas/opCharts_node-summary-table.json and add the device_ci as shown below


Code Block
title/usr/local/omk/lib/json/opCharts/table_schemas/opCharts_node-summary-table.json
// VERSION=1.518.0

...


[  

...


  "group",

...


  "host",

...


  "host_addr",

...


  "location",

...


  "nodeVendor",

...


  "nodeModel",

...


  { "name" : "device_ci", "label": "Device CI", "cell": "String"},

...


  { "name" : "sysDescr", "label": "sysDescr", "cell": "Tooltip", "formatter": "ShortenedString", "maxLength" : 48},

...


  { "name" : "lastUpdateSec", "label" : "Last Updated", "cell" : "String", "formatter" : "UnixTime"},

...


  { "name" : "sysUpTimeSec", "label" : "Uptime", "cell" : "String", "formatter" : "UpTime"},

...


  { "name" : "remote", "label" : "Managed by"}

...


]




3)New validation plugins are present at
we have a directory
/usr/local/nmis9/conf-default/plugins/
the plugin is present in 
/usr/local/nmis9/conf-default/validation_plugins/
 
Now we need to do is 
create a directory 
/usr/local/nmis9/conf-default/plugins_available/
 
then create a soft link of that file in plugins
/usr/local/nmis9/conf-default/plugins/

...