This is a new concept document/tool built using Excel that can help you to build System Monitor consoles that are centrally stored to monitor your servers. You can build as many consoles as you want using this tool, with each console being responsible for monitoring a specific area of your IT infrastructure (e.g. one for Exchange databases, another for disk latencies, another for core resources of DC servers, etc.), You can store these in a central place where administrators will be able to open them and monitor (or troubleshoot) their servers. People using this tool won’t need any knowledge about scripting (or at least very little) as the code is generated automatically through the Excel tabs.
Please note this tool is provided as is, but feedback and input is appreciated.
Download a zip archive of the document and tools from here: DTW Tools and Documents
The DTW concept stands for a document that can be integrated into a tool and contains step-by-step instructions on how to do things.
Select and copy the code between the <HTML> and the </HTML> tag
Copy lines between the HTML tags then paste them on a blank notepad file that's leads to the following screenshot :
Copy the items in the 4th column (red header) on the "console initialization" section:
The following PowerShell commands show how to get the counter paths for a particular set of counters.
Example 1:
=> The "PathWithInstances" property of a counter object allows Powershell to print counters for each instances (for example in Exchange, the "Database" counter category, for the "Database read latency" counter, there is one of these counters for each database: each database represents an instance
Example 2:
=> The "Counter" property of a counter object allows PowerShell to print counters for all instances (not each instance separately - it is if you wish to monitor counters for all instances - if you're not interested in monitoring each instance - example monitor overall processor activity instead of each processor core activity) => This example is to display all counters counting all client connection TYPES (Admin connections, Web Services, RPC Service, OWA, etc…) - the PathsWithInstances will detail all these connection TYPES, whereas the Counter property would monitor the global connection count
=> The "Counter" property of a counter object allows PowerShell to print counters for all instances (not each instance separately - it is if you wish to monitor counters for all instances - if you're not interested in monitoring each instance - example monitor overall processor activity instead of each processor core activity)
=> This example is to display all counters counting all client connection TYPES (Admin connections, Web Services, RPC Service, OWA, etc…) - the PathsWithInstances will detail all these connection TYPES, whereas the Counter property would monitor the global connection count
Example 3:
=> this last example is to get the counters of the database category, and showing information about latency to start diagnosing a potential database latency issues. From that, you will set up HTA consoles with other counters such as memory counters, disk counters, etc... I’ll provide you with all the important Exchange counters to monitor in another article, in a way that you’ll be able to easily use these with this tool.
Copy the counter path on the "Counter path to add" column, the "code to include" will automatically generate itself! You can specify a server to monitor, if no servers are specified, the local machine on wich the htm or hta file will be run will be monitored.
Copy the items in the 4th column (red header) on the "Counters list" part
Zooming on the column to paste on your code shows:
Copy the items in the 6th column (red header) on the "Counter item customization" section
Save your newly created console HTA file!
The resulting icon shortcut ...
The result: a real-time HTA console that you can run from a USB key or a network share from any workstation or server :
These are options you can configure inside the XML document-tool to change general HTML behaviour of your final HTA console, and also, for advanced HTML programmers, you can define the identifier of the console you are building with the tool.