Page 1 of 2
Concurrent Web Connections - IIS Server
Posted: Wed Oct 30, 2013 11:36 am
by jglass
Would like to monitor concurrent connections to our Web servers.
I found where someone mentioned that the URL monitoring wizard had an option for concurrent connections, but I do not see the option.
It appears that Nagios is capable of monitoring concurrent connection by leveraging the NSClient++. Found this:
> If it's Microsoft IIS, you can query the performance counter for
> current connections using NSClient++. In my nsc.ini config, I have:
>
> web_curr_conn=inject CheckCounter "Counter:connections=\Web
> Service(_Total)\Current Connections" ShowAll MaxWarn=40 MaxCrit=100
>
> So I can then query the counter from Nagios using a simple nrpe command like:
>
> $USER1$/check_nrpe -H $HOSTADDDRESS$ -c web_curr_conn
I prefer to monitor via snmp.
Has anyone used Nagios to monitor concurrent IIS connections -- How did you do it?
Thanks,
Jason
Re: Concurrent Web Connections - IIS Server
Posted: Wed Oct 30, 2013 2:22 pm
by jglass
I am finding a lot of information on monitoring Windows counters using NSClient, I am trying it out.
I am able to run through the Windows Server wizard, and can successfully monitor a pre-defined counter. I encounter issues when trying to define my own. Let me first add, I am unsure of how to configure the ini and nrpe command as earlier mentioned, so I am using the wizard.
The wizard requires you to specify the following. This is what I have and need help with:
Performance Counter: \\Web Service(_Total)\\Current Connections
Display: IIS Current Connections
Counter Output Format: ?-need help here-tried to use the same as the pre-defined counters, this did not work
Warning Value: 150
Critical Value: 200
The wizard fails. My guess is because I am using the wrong Output Format??
Re: Concurrent Web Connections - IIS Server
Posted: Wed Oct 30, 2013 4:46 pm
by slansing
Can you show us the full windows counter? From Performance Monitor > Properties > Counter > "Full counter name," and also the check definition you are using when you create it with the monitoring wizard. CCM > Services > "Service name of IIS counter > Click the blue diskette icon next to it and share the output.
Re: Concurrent Web Connections - IIS Server
Posted: Thu Oct 31, 2013 8:55 am
by jglass
Attached a pic of the full windowns counter, and a pic of what the Services shows.
The txt file includes the Nagios service config. Note that the Server Work Q is working, and that this is one of the pre-defined counters within the wizard.
Thank you.
Re: Concurrent Web Connections - IIS Server
Posted: Thu Oct 31, 2013 9:57 am
by slansing
When you add the counter, right click on it and click properties, then show us the popup window. This should be a bit more helpful

Re: Concurrent Web Connections - IIS Server
Posted: Thu Oct 31, 2013 1:21 pm
by jglass
Gotcha - Here it is:
Re: Concurrent Web Connections - IIS Server
Posted: Thu Oct 31, 2013 1:31 pm
by slansing
Ahh, can you go back to the ccm and edit that service's counter to be like so:
Code: Select all
\\Web Service(_Total)\\Current Connections
Re: Concurrent Web Connections - IIS Server
Posted: Thu Oct 31, 2013 2:10 pm
by jglass
Replaced arg3 with, \\Web Service(_Total)\\Current Connections ...no luck, cannot apply the configuration:
I also tried:
"\\Web Service(_Total)\\Current Connections"
-l "\\Web Service(_Total)\\Current Connections"
-l "\\Web Service(_Total)\\Current Connections" -w 500 -c 1000
This is what was originally there, again I took the %.f from a working counter:
-l "\\Web Service(_Total)\Current Connections","Current IIS Connections is %.f" -w 500 -c 1000
Thanks.
Re: Concurrent Web Connections - IIS Server
Posted: Thu Oct 31, 2013 4:18 pm
by sreinhardt
Let's try a couple variations, I might also suggest running from cli, but thats entirely up to you.
Code: Select all
"\\Web Service(_Total)\Current Connections"
"\Web Service(_Total)\\Current Connections"
"\Web Service(_Total)\Current Connections"
I was able to get it with the single slashes, but for some reason I know that doesn't work with everything.
Re: Concurrent Web Connections - IIS Server
Posted: Thu Oct 31, 2013 4:51 pm
by slansing
In addition, just because you cannot apply configuration does not mean that the check will not work. Lets run the following CCM > Tools > Write Config Files. Click the first two buttons and let us know what the error output is. You should see some red text and errors, the warnings are more or less meaningless for what we are trying to do right now.