Discussion:
[Check_mk (english)] Windows performance monitoring (IIS/ASP)
Rafal Bialek
2016-09-25 09:06:02 UTC
Permalink
Hello,

I’m recently started using check_mk and strugglig to setup monitoring of IIS/ASP application.
Not sure is anything already created by community that i could use. In the mean time I was looking at monitoring both IIS and ASP through Performance Objects but so far miserably failing. Any help or pointers to right resources will be greatly appreciated.

This is what I attempted to do so far (based on https://mathias-kettner.de/checkmk_windows.html):

1. Exported counter objects mappings to respective IDs using lodctr /s:counters.ini

2. Found counter of interest e.g. for [PERF_ASP.NET]
[PERF_ASP.NET]
First Counter=8452
First Help=8453
Last Counter=8676
Last Help=8677

8452=ASP.NET
8453=ASP.NET global performance counters
8454=ASP.NET Applications
8455=ASP.NET application performance counters
8456=Application Restarts
8457=Number of times the application has been restarted during the web server's lifetime.
8458=Applications Running
8459=Number of currently running web applications.
8460=Requests Disconnected
8461=The number of requests disconnected due to communication errors or user terminated.
8462=Request Execution Time
8463=The number of milliseconds that it took to execute the most recent request.
8464=Requests Rejected
8465=The number of requests rejected because the request queue was full.
8466=Requests Queued
8467=The number of requests waiting to be processed.
8468=Worker Processes Running
8469=Number of worker processes running on the machine.
8470=Worker Process Restarts
8471=Number of times a worker process has restarted on the machine.
8472=Request Wait Time
8473=The number of milliseconds the most recent request was waiting in the queue.
...


3. Added the following entry in check_mk.ini

[winperf]
counters = 8458:asp_apprg
also as supported since 1.2.5i6 I tried the following:

[winperf]
counters = Applications Running:asp_apprg


4. Run cmk -d <hostname> | grep winperf which doesn’t output any data for asp_apprg counter

5. Tested with example Connection counter counters = 638:tcp_conn and cmk -d <hostname> | grep winperf produces expected output



What I’n doing wrong or I’m missing. Is anything else yhat needs to be enabled on monitored system?



Best regards,



Rafal
Marcel Schulte
2016-09-25 10:28:11 UTC
Permalink
Hi Rafal,

1) using the counter names is always the better choice because one can
never say which ids a counter has in another Windows system - Microsoft
seems to randomize some ids from time to time...

2) did you restart the cmk agent service after adding config to INI file?

Can you send me an agent output as attachment, as well as your INI file?

Regards,
Marcel
Post by Rafal Bialek
Hello,
I’m recently started using check_mk and strugglig to setup monitoring of
IIS/ASP application.
Not sure is anything already created by community that i could use. In the
mean time I was looking at monitoring both IIS and ASP through Performance
Objects but so far miserably failing. Any help or pointers to right
resources will be greatly appreciated.
This is what I attempted to do so far (based on
1. Exported counter objects mappings to respective IDs using lodctr /s:counters.ini
2. Found counter of interest e.g. for [PERF_ASP.NET]
[PERF_ASP.NET]
First Counter=8452
First Help=8453
Last Counter=8676
Last Help=8677
8452=ASP.NET
8453=ASP.NET global performance counters
8454=ASP.NET Applications
8455=ASP.NET application performance counters
8456=Application Restarts
8457=Number of times the application has been restarted during the web server's lifetime.
8458=Applications Running
8459=Number of currently running web applications.
8460=Requests Disconnected
8461=The number of requests disconnected due to communication errors or user terminated.
8462=Request Execution Time
8463=The number of milliseconds that it took to execute the most recent request.
8464=Requests Rejected
8465=The number of requests rejected because the request queue was full.
8466=Requests Queued
8467=The number of requests waiting to be processed.
8468=Worker Processes Running
8469=Number of worker processes running on the machine.
8470=Worker Process Restarts
8471=Number of times a worker process has restarted on the machine.
8472=Request Wait Time
8473=The number of milliseconds the most recent request was waiting in the queue.
...
3. Added the following entry in check_mk.ini
[winperf]
counters = 8458:asp_apprg
[winperf]
counters = Applications Running:asp_apprg
4. Run cmk -d <hostname> | grep winperf which doesn’t output any
data for asp_apprg counter
5. Tested with example Connection counter counters = 638:tcp_conn and
cmk -d <hostname> | grep winperf produces expected output
What I’n doing wrong or I’m missing. Is anything else yhat needs to be
enabled on monitored system?
Best regards,
Rafal
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Loading...