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.
...
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
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.
...
Code Block |
---|
'opcharts_gui_node_search_mode' => ‘remote’, # <- hits the server every search |
...
Width of results box
The width of the node search results can also be customised using CSS. If the width of the box is consistently too small try adding the following lines to /usr/local/omk/public/omk/css/opCharts_c_custom_packed.css
Code Block |
---|
.tt-dropdown-menu, .tt-menu
{
min-width: 480px;
} |
The width value should be adjusted to fit your needs.