Versions Compared

Key

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

...

The opCharts menu bar includes a Filter field where you can select a time period to use in the current dashboard. This drop-down listbox is defined in opCommon.nmis under "opcharts_gui_period_values"

 


Adjusting node

...

selector attributes

The opCharts Node Selector shows a list of attributes that can be selected to filter which nodes are shown in the nodes screen.  If you are using custom attributes or want to be able to select nodes based on other attributes not shown such as Location or Business Service you can vary the slections selections by changing what is in "opcharts_node_selector_sections" in opComonsopCommon.nmis. The same updates can be made to the Monitored Services Selector filters with the attributes in "opcharts_monitored_service_selector_sections"

In opCommon.nmis Changechange:

Code Block
languageperl
titleopCommon.nmis opcharts section
'opcharts_node_selector_sections' => [
	  {
        'key' => 'nodestatus',
        'name' => 'Node Status'
      },
      {
        'key' => 'group',
        'name' => 'Group'
      },
# other default atttributesattributes not shown for brevity
## adding in location as an attribute to filter by:
	  {
        'key' => 'location',
        'name' => 'Location'
      },

...

Info

If the attribute you have chosen is not populating the selector list as expected, check the /usr/local/nmis8/var/nmis-nodesum.json file for the attribute.  If the attribute is not listed add it to node_summary_field_list in /usr/local/nmis8/conf/Config.nmis.  A /usr/local/nmis8/bin/nmis.pl type=summary must run for these changes to take affect.

Adding Custom CSS

You can add custom css to /usr/local/omk/public/omk/css/opCharts_c_custom_packed.css

This file is maintained over upgrades within the same minor version, when upgrading from 3.x to 4.x please backup this file.

Adjusting Node Search

For opCharts-3.3.0 and below.

...

Changing from prefetch to remote will also allow a more comprehensive search. The prefetch search looks slightly nicer but only searches from start of the word, remote search will search all parts of the word (host/node name).

In opCommon.nmis Changechange:

Code Block
'opcharts_gui_node_search_mode' => 'prefetch’, # <- uses prefetched data to do the search locally

...

The width value should be adjusted to fit your needs.