The march to monitor everything from Monitis has reached a new frontier: Monitoring IIS. The IIS monitoring scripts uses the Monitis PowerShell module, and demonstrate how to get IIS performance statistics and upload it them to custom Monitis monitors.
What We’re Looking For
So what IIS performance metrics does this script handle? Most bosses are business oriented, and so we’re going to watch the stats that are important to the bottom line: Traffic and what it does to the server.
In this script, each of these metrics is represented by the some properties:
- Attendance – number of connections, number of anonymous and non-anonymous users on website at current time and per second.
- Server load measures – HTTP-requests (GET, POST, PUT, DELETE, OPTIONS, MKCOL, PUT, COPY, SEARCH, MOVE, LOCK), logon and connection attempts and CGI requests per second and their total amount. Also total not-found errors.
- Traffic – amount of sent, received and reciprocal transferred bytes and files per second and total.
Before it executing make sure that you have permissions to execute scripts. Type “Get-ExecutionPolicy” in your PowerShell console. Script execution policy must set into RemoteSigned or Restricted. If not, type “Set-Execution-Policy RemoteSigned” or “Set-Execution-Policy Restricted”. Also, please make sure your module is copied to folder named “Monitis” underneath “MyDocuments\WindowsPowerShell\Modules”. For this script, you should also ensure you’re running as an administrator.
Read the full post