Skip to content

2023-03-24 Handle large datasets better

Compare
Choose a tag to compare
@chriscareycode chriscareycode released this 24 Mar 18:17

Improve scale for larger datasets.

NagiosTV would fetch the full list of hosts and services on the polling interval, and filter for only items that are "not UP" or "not OK" to display the items on the page. On larger Nagios installs with thousands or tens of thousands of items, this created much more data transfer, and more CPU on the server than necessary. Refactored the routines to:

  • Only fetch "not UP" or "not OK" items from the API
  • Make an additional API call to determine "how many hosts" and "how many services" there are in total.

Add a new option automaticScrollWaitSeconds to help control the delay on the automatic scroll feature.

Fix a bug where service comments were showing up on the parent host item.