Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Document Node Info panel options

...

Code Block
title'opcharts_gui_node_list_table_columns' example
{ 
        name=> "node_name",
        label => "Name",
        cell=> 'NodeLinkCell',
        renderable => 1,
        comment => "must be present for NodeLinkCell to work on any column, use renderable => 0 to hide"
},

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: 

Code Block
{ 
  name => 'sysUpTimeSec',  # - name of the data attribute
  label => "Uptime",  # - label displayed beside the attribute value
  cell => "String",  # - type of data in the cell
  formatter => 'UpTime' # - how to format the value in the cell
}

opCharts will search in 3 places:

  1. NMIS nodesum file
  2. NMIS Nodes.nmis file
  3. NMIS "-node.json" file, in the "system" section

Configuration options exist in NMIS to get attributes into these one of these locations, see the NMIS documentation for more on this.

Remember to restart the omkd daemon after making configuration changes.