https://ones.com/blog/mastering-system-health-monitoring-scripts/