This feature is specifically for scaling inventory display is massive environments with large inventory counts. In environments with large inventory counts the inventory page can get bogged down when trying to join records together and calculating pagination.
Info |
---|
This requires opCharts-4.5.2 and greater NMIS-9.4.2, with opHA you will need all servers in the pollers cluster to have run 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.
...
Enable the Feature
Update the OMK configuration file, /usr/local/omk/conf/opCommon.json
Code Block | ||||
---|---|---|---|---|
| ||||
"opcharts_inventory_use_cached_node_records" : 1 |
...
Restart the OMK daemon
Code Block |
---|
sudo systemctl restart omkd |
Update the Inventory
The update to NMIS9 will update the inventory automatically, if you want to wait for that to run on all nodes, to make the update now, use the cli command to back-fill the inventory records on the primary and pollers.
Code Block | ||
---|---|---|
| ||
/usr/local/omk/opcharts-cli.exepl 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 rename it could cause unexpected results in the inventory screen. in In this case you can run the enhance inventory cli command again to re-patch the records.
The follow fields are included:
- node_name
- configuration.group
Functionality
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.
...