Bart Jacobs’s Toolbox: Monitoring Part 2
Promises, promises… I like to keep mine, so after Part 1, let’s continue with Part 2.
Originally, it wasn’t my plan to have a Part 2 in the first place. When I started writing the script, it was my goal to include all checks into a single script.
I rather quickly abandoned that idea because the script became too bloated and slow. At the time, some checks that are now part of Part 2, were based on WMI queries. We all know WMI, but not for it’s speed, right?
So I decided to keep it simple, and at least start somewhere instead of keep on trying. The result is Part 1.
But I couldn’t just pass up on my original idea either.
So I decided to take the same framework (with loop, offset timer and other parameters) and add the other tests. And at the same time tryging to avoid the usage of WMI queries as much as possible.
Tests I included:
- CPU usage
- Memory Usage
- Disk Usage
- Disk queue length
In the end, I was forced to use a single WMI query, and that was needed to determine the amount of memory for a machine:
Read the entire article here, Bart Jacobs’s Toolbox: Monitoring Part 2
Via Carl Webster