IIS (Internet Information Services) Monitoring Plugin
The IIS Monitoring Plugin extends the Windows Performance Counter Monitor with pre-configured measures for Internet Information Services
dynaTrace Diagnostics >= 5.5
IIS 6 & 7
Andreas Grabner (firstname.lastname@example.org)
IIS Monitoring Plugin
Verify Installed Plugin in Server Preferences->Plugins Create a new Windows Performance Monitor for your System Profile Give it the name IIS Performance Monitor (name is important if you want to use the attached dashboard) List of subscribed IIS specific performance counters The package also includes the following dashboard.
1) Extract the attached zip file to your file system 2) Open the Server Preferences dialog and open the Plugins tab 4) Choose "Import JAR ..." and select the extracted file "com.dynatrace.diagnostics.plugin.PerfMonIIS_126.96.36.199.jar" 5) Verify that the plugin was correctly installed. Verify that the plugin "IIS Performance Monitor" shows up in the list of installed plugins In order to subscribe to IIS Performance Measures you have to: 1) Edit your System Profile 2) Add a new Monitor 3) Select "Windows Performance Monitor" 4) Specify "IIS Performance Monitor" as the monitors name (This is important if you also want to use the IIS Monitoring Dashboard that is attached to this plugin) 5) Specify the hostname of IIS in the monitor properties 6) View a list of all Measures that you now have subscribed. You can view and modify the list on the Measures tab IIS Dashboard 1) Open the Dashboard (Internet Information Services.dashboard.xml) that is part of the download package. 2) You will be prompted to specify the data source as the original datasource is not accessible. Select the System Profile that contains the Monitor with the name "IIS Performance Monitor" 3) The dashboard is configured to refresh every 10 seconds
It would be helpful to have a screenshot of the settings tab to show an example of usage.
It is possible to install this plugin in dynaTrace 4.0?
It should work but I havent tested it. Please give it a try and let us know if it works - then I am updating this page
I don't want to test a plugin in my dynatrace server of production ;)
This plugin is a Metric Group Plugin which defines additional Windows Performance Counters for the Windows Performance Monitor. I am therefore pretty sure it works as it just defines a new set of Windows PerfCounters.
To be really sure I just tested it out and it works
I will update the version information on this download page to reflect this
Thanks for the test ;-) , I download it.
let me know if it worked for your
IIS monitor and dashboard also work wonderfully with dynaTrace 5.0.0.
I see that we could create custom perfmon measures which are agent based and can collect the same information as this plugin. If we have a dynatrace agent on a server with IIS is it recommended to use the custom perfmon measure or use this plugin and reduce the overhead on the agent.
Thats a very good question. IF the user that runs the IIS worker process (the one with the injected agent) has the privilidges to query performance counters from that machine you can use the agent approach.
The downside with that approach is the following though
a) you may have multiple agents on the IIS machine -> one per w3pw worker process -> so you may collect dupliated data
b) if IIS shuts down the worker process, e.g: after 20 minutes idle time -> you will not see these counters
My personal opinion therefore is to go the monitor approach. It makes sure you ALWAYS get the data + it makes sure that you do not capture it multiple times
Tried this on an IIS 7.5 and the monitor retrieves no data. Other performance counters can be retrieved. any ideas why this could happen ?
CAn you test whether you get values for these performnace counters if you use the Performnace Monitor Tool that comes with windows? Sometimes there are issues with performnace counters delivering values!
When you say other performance counters are available is it from the monitor or from an agent in the server.
This is a wild guess: it could be that the agent in the server is bringing perfmon counters and that uses the monitored process account (for .net agents) to access the counters. Where as this plugin which runs as a monitor uses the collector process credentials to access the perfmon counters, and that access might not be there, so you may not get the additional counters defined in the plugin.
Did you checked the plugin logs? It might give some hint on the issue. You can find the log in the system information under the collector you are running this monitor.
Has anyone tested this on 5.6+?
Though my post was a while ago, I believe I managed to get it working on 5.6.
Thanks Gil, are permissions a concern? I ask because this appears to be straight forward, but it is failing with the below errors and i can't think of anything else other than it could be a permissions issue. I've retriggered the run several times but nothing.
Schedule Details Name: IIS Performance
Monitor Status: scheduled
Description: Reads out PerfMon information from Microsoft Windows Systems (for example % Processor Time, Memory, AvailableKBytes, ...)
Type: Windows Performance Monitor
Last Run: - Last Run Result: failed
Next Run: -
Current Run: -
Duration (last run): -
Execution Target: DTcollector
Plugin Active: active
Result Status: failed Result: 2 host queried, 2 failed or unknown, 0 partially failed and 0 successful. Result: Detailed information of failed last task/monitor execution is no longer available. Please trigger a new run.
Hi, I have installed this plugin in dT 5.6 and it is not working for me. I am seeing the same failure message as the person posted above me.
I checked on the Targeted server for the IIS metrics in perfmon and I do see them being collected. But the monitor is unable to get them.
Would really like to know how to resolve this. I have installed the plugin and created the monitor exactly the same way as described.
I will try and get the details of the configuration from the client side and post them here.
I've also installed and configured as per the instructions, no data is returned even though PerfMon shows values for the same counters. I'm using dT 6.0 and IIS 7.5 (on Win7).
Apart from this, I also get the failed result for a remote server - is this perhaps due to permissions and if so, what do I need to do to get it to work?
I've also installed and configured as per the instructions, no data is returned even though PerfMon shows values for the same counters. I'm using dT 6.0 and IIS 6.0 (on Win server 2008).
I am getting the following error "
Unable to access the desired computer or service. Check the permissions and authentication of the log service or the interactive user session against those on the computer or service being monitored."
Could you please help us in letting know, What do we need to do for resolving the issue??
I managed to get it working, two things were affecting me:
Hope this helps
Thanks for that - thats great info!!
Thank you very much. its working now after applying the second option given by you
I'm glad it is working!
Thanks Andre, your steps listed above made this monitor to work for us.
Great stuff, glad you got it up Biken!
I'm trying to use this plugin and I'm getting the following message:
Connecting to the host 'xxxx' caused exception: failed to initialize perfmon library. cause:Unable to initialize PerformanceCounter Object. Please check if the host is reachable and the requested Performance Counter is available. Detailed error message: Unable to connect to the specified computer or the computer is offline. (System error code: 0x800007D0)
My Collector proccess is running using a domain account that is the Performance Monitor Group on the host I'm trying to reach.
I can Ping the Host from my collector machine.
Any tip about this problem? Do I need permission in anything else?
On that machine where your collector runs - can you open the "Performance Monitor" tool that comes with Windows and verify that you can really query the remote performance counters of these hosts you want to monitor? This is a good sanity check. The remote hosts need to be enabled for remote performance counter monitoring.
Thank you Andreas for the replay.
I configured the monitor plugin in another dynatrace server and it worked fine (using the same user).
The SO team said I need to reboot the machine, as I need a maintanance window, I will wait until there.
Do you recall which machine you had to reboot when you encountered that error message? Was it the monitor collector host, or the IIS host you were trying to monitor? I have the same error message and want to refrain from having to restart both hosts. Both are running Windows 2012 R2.
Actually I didn't go forward with this subject, so I don't really know which one I would have to restart. But I guess would be the collector machine.
Did you have a chance to test what Andreas Grabner suggested?
Thanks for the response. I restarted the Collector process and host, but with no luck. Unfortunately we couldn't restart the IIS server host due to change control procedures, so I also didn't get to the bottom of this.
I did try Andreas Grabner's suggestions and on both IIS hosts, the IIS perfmon counters listed, so this wasn't an issue with missing/disabled perfmon counters...if only it was, then I'd know how to fix it!
If I run into this again and I have more time to try resolve this, I'll update the thread with my results.
I installed plugin in dT188.8.131.5205 and works fine .
Question : when i pull IIS counters for many Hosts, can i filter this information by host in dashboard ?
Hi. Yes - this is possible. The monitor will create measures per Host and you can then use the Dashboard Host Filter option to select which hosts you really want to see. this will then be applied to all dashlets (including your charts) so that they only show the measures from that host
Thanks for reply andi, but can i do it like master/salve such as Hosts dashlets .
Thats unfortunately not possible. But this would be a great RFE that you can post as an Idea on http://answers.dynatrace.com
For info, I have just deployed the plugin on 6.5 and it partially worked.
BTW with IIS 7.5+ some of the performance counters have changed name.
For instance "IIS global" has been replaced with W3SVC_W3P, however on my machine these counters return nothing. It is nothing wrong with the plugin as I can't get the value either from perfMon... Might be something wrong with my local installation of IIS.
So you might have to tweak the counter names to make it all work.