Ad Widget

Collapse

Windows: How to collect CPU data for w3wp processes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mzamora
    Junior Member
    • Oct 2017
    • 6

    #1

    Windows: How to collect CPU data for w3wp processes

    Hi, how can I go about doing this.
    I have multiple IIS servers running in our environment. Some spawn 2 iis threads, some 4, some 8, etc. The # is dynamic and is different for each box.

    I want to collect the cpu usage for the w3wp process so I created an item key like so:
    perf_counter["\Process(w3wp)\% Processor Time",300]

    However, this only collects cpu usage with the name "w3wp".
    If I have multiple w3wp threads runninning then I would have to have more items like so:

    perf_counter["\Process(w3wp#1)\% Processor Time",300]
    perf_counter["\Process(w3wp#2)\% Processor Time",300]

    However this is not practical to put in a template b/c a given iis box can have x number of threads. Is there a way for zabbix to collect the cpu for ALL w3wp processes and then sums them up?
    I tried the key perf_counter["\Process(w3wp*)\% Processor Time",300] with an * but that doesn't work.
    How can I get 1 CPU number for ALL w3wp processes without having to create separate keys for each thread?
Working...