Versions Compared

Key

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


Info

This requires opCharts-4.5.2 and greater NMIS-9.4.2, with opHA you will need the pollers to have NMIS-9.4.2 and greater installed.

In environments with large inventory counts the inventory page can get bogged down when trying to join records together and calculating pagination.


Add this to opCommon and restart omkd

Code Block
languagejs
titleopCommon.json
"opcharts_inventory_use_cached_node_records" : 1


Use the cli command to back-fill the inventory records on the primary and pollers

Code Block
languagebash
/usr/local/omk/opcharts-cli.exe act=enhance-inventory

This will add the node name and node group to the inventory records, note if you change the nodes group or name it  could cause unexpected results in the inventory screen. in this case you can run the enhance inventory cli command again to re-patch the records.


If the inventory page is trying to display over 100,000 records the gui will skip counting the records and the Display Grid will swap into a infinite mode which will paginate through the records until it hit the end. The count will show  (pageSize * pageNum) of Many.

Skipping this total count results in better query performance and skipping MongoDB having to count all the records.