Versions Compared

Key

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

...

The opCharts menu bar includes a Chart Time 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"

Image Added


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 selections by changing what is in "opcharts_node_selector_sections" in opCommon.nmis. The same updates can be made to the Monitored Services Selector filters with the attributes in "

Image Removed

 

...

opcharts_monitored_service_selector_sections"

Image Added

In opCommon.nmis change:

Code Block
languageperl
titleopCommon.nmis opcharts section
'opcharts_node_selector_sections' => [
	  {
        'key' => 'nodestatus',
        'name' => 'Node Status'
      },
      {
        'key' => 'group',
        'name' => 'Group'
      },
# other default attributes 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.

Type of search

The opCharts Node Selector defaults to using prefetched search results. While this can speed searches, it requires the entire data set to be downloaded with each page load, which can slow response time when a large number of nodes exist as the data set can get very large. You can adjust this default from prefetching the search results to loading the results remotely with each search.

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.