Versions Compared

Key

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

...

Code Block
'opcharts_gui_node_list_view_type' => 'table', #options: 'table' or 'panel'

Table view options

Columns displayed in the node list table view can be customized, existing columns can be removed/hidden and the order of the columns can be re-arranged.  The config item 'opcharts_gui_node_list_table_columns' defines which columns will be displayed as we as the order of the columns are displayed.

The order the columns are defined is the order they will be displayed.

Available columns:

  • All node properties in the nodesum (/usr/local/nmis8/var/nmis-nodesum.json), prefixed with node_summary.
  • All node properties in the summary8h (/usr/local/nmis8/var/nmis-summary8h.json), prefixed with node_summary8.

You may wish to refer to Config.nmis to select what fields are seen in nmis-nodesum.json through :    'node_summary_field_list' => 'uuid,host,host_addr,customer,myRole,ServerRoles,businessService,serviceStatus,snmpdown',

Column definition:

  • name - the name of the data property
  • label - the name in the header of the column, this will be localized if the translation is available
  • cell - the type of data in the cell, 'String', 'Number', 'Integer', 'Percent' are all valid. To make a column become a link to the node set to 'NodeLinkCell' on that column, eg: cell => 'NodeLinkCell'.
  • formatter - in most cases this does not need to be defined.  If the value is in epoch time set this to 'UnixTimeFormatter' to get a string date/time display.
  • renderable - set this to 0 to keep the column in the config but not show it, by default this is 1 which is to show the column

Example column entry:

...

title'opcharts_gui_node_list_table_columns' example

...

Customising table views is described here:  opCharts 3.2.2 - Customising Table Columns

Node info options

The node info panel is found on most node pages and shows a customisable list of node attributes. The config option 'opcharts_gui_node_summary_list' holds the list of attributes that opCharts will display in this panel.  The list can contain two types of entries, a string with the attribute name, eg. 'host' or an object/hash with the same structure as the opcharts_gui_node_list_table_columns: 

...