Customising the opCharts GUI
...
Hiding Module List in Menu Bar
Each opModule includes a "Modules" menu item in the top menu bar. To hide the "Modules" menu item in the opCharts menu bar, change the configuration option in opCommon.nmis, "opcharts_gui_display_modules_list" to false, by default this is true.
Adjusting the Chart Time Values
The opCharts menu bar includes a Chart Time 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 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 Change:
Code Block |
---|
'opcharts_gui_node_search_mode' => 'prefetch’, # <- uses prefetched data to do the search locally |
To:
Code Block |
---|
'opcharts_gui_node_search_mode' => ‘remote’, # <- hits the server every search |