In this 3rd article in our series about SharePoint Server we’ll discuss how easy it is to create custom Monitis monitor to manage the performance of our SharePoint environment. The VBScript SharePoint monitoring source code is available for download from Github public repository and can be easily modified if you want to add additional metrics. The monitor as it is includes support for CPU and Memory subsystem metrics, ASP metrics, and some of the relevant SQL server metrics.
The list below shows the performance counters (and their purpose) included in this monitor. We have mentioned most of these metrics in our previous SharePoint article, but for the purpose of this VBScript monitor we’ll touch on them again:
|Objects and Counters||Problem||Resolution Options|
|Processor – % Processor Time||Over 75-85%||Upgrade processorIncrease number of processorsAdd additional server(s)|
|Available Mbytes||Less than 2GB on a Web server.||Add memory.|
|Cache Faults/sec||Greater than 1||Add memoryIncrease cache speed or size if possibleMove data to an alternative disk or server|
|Pages/sec||Greater than 10||Add memory|
|Requests Queued||Hundreds or thousands of requests queued.||Implement additional Web serversThe default maximum for this counter is 5,000, and you can change this setting in the Machine.config file|
|Request Wait Time||As the number of wait events increases, users will experience degraded page rendering performance.||Implement additional Web servers|
|Requests Rejected||Greater than 0||Implement additional Web servers|
Installing the SharePoint monitor
After you downloaded the code from Git, you can install the custom monitor by executing the following command from a command window:
This command creates a new monitor page on the Monitis dashboard for SharePoint and adds the specific monitors. Of course no data is displayed until we actually run the monitor. To run the monitor and start collecting performance data execute the following command:
Once performance data is being collected you’ll be able to bring up your dashboard, select the SharePoint tab and monitor the health of your SharePoint system.
That’s it for the custom SharePoint monitor. Make sure to refer to our previous two articles in this series for a detailed description of these (and other) relevant performance counters for SharePoint. After you download the code from Git, you can of course add more counters to this dashboard page.