TECHZEN Zenoss User Community ARCHIVE  

zenoss w3wp monitoring CPU for each process

Subject: zenoss w3wp monitoring CPU for each process
Author: Dale Lashley
Posted: 2017-12-29 10:48



On some of my web servers I have multiple application pools. I would like to graph the CPU and MEM consumption of those pools each individually. Some servers have as many as 14 processes running some as little as 1. I know where in Perfmon to get the information which is at \Process(w3wp)\% Privileged Time each pool has their own counter and its signified by adding a #1 #2 #3 ect behind the w3wp in the counter object.
​​​
I have edited my windows template to add this data source as a perfmon counter. However it only gets the single instance and ignores all the others. Great for servers with only 1 pool running not so great for ones that have 14. I could go the long route and make a entry for each and ever single one but would rather use a variable and grab that information automatically.
In looking in some other datapoints specifically for ISS as an example they have a variable in the counter string as such
\Web Service(${here/sitename})\Head Requests/sec

Does anyone know what that variable would be to insert into \Process(w3wp)\% Privileged Time to get all the pools rather than just the one?


Subject: RE: zenoss w3wp monitoring CPU for each process
Author: Jane Curry
Posted: 2017-12-30 04:01

I guess what you really need is to create a component that represents your pool.  Unfortunately that is a much bigger job than just changing the template.  I'm pretty sure that this is what happens with the Windows ZenPack - it creates a new type of component for IIS site and then has a modeler plugin that discovers the instances of the IIS site component.  Once you are that far, you create a component template that automatically adds on the instance for your #2, #3 etc.

If you haven't done any ZenPack work before, you might look at the toolkit ZenPack SDK documentation at https://zenpack-sdk.zenoss.com/en/latest/   at the ZenPack Developers' User Guide at https://github.com/ZenossDevGuide/DevGuide  .

Cheers,
Jane​​

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


< Previous
Event Class Fail
  Next
Uploading new MIBs to Zenoss
>