Monitis SharePoint Monitor
Posted by Ard-Jan Barnas | Posted in Applications Monitoring, Monitoring Scripts, Performance Management, Windows Servers Monitoring | Posted on 05-12-2011
Tags: sharepoint, VBScript
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 – % Processor Time | Over 75-85% | Upgrade processorIncrease number of processorsAdd additional server(s) |
| Memory | ||
| 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 |
| ASP.NET | ||
| 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:
Cscript AddCustomSharepointMonitor.vbs
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:
Cscript PushCustomSharePointData.vbs
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.
See also:
Managing and Monitoring SharePoint Server 2010: Resolving Bottlenecks
Managing and Monitoring SharePoint Server 2010: Configuring the Usage Database
SharePoint Performance Monitoring















