Concurrent Web Connections - IIS Server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

Concurrent Web Connections - IIS Server

Post 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
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

Re: Concurrent Web Connections - IIS Server

Post 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??
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Concurrent Web Connections - IIS Server

Post 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.
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

Re: Concurrent Web Connections - IIS Server

Post 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.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Concurrent Web Connections - IIS Server

Post 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 :)
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

Re: Concurrent Web Connections - IIS Server

Post by jglass »

Gotcha - Here it is:
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Concurrent Web Connections - IIS Server

Post 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
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

Re: Concurrent Web Connections - IIS Server

Post 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.
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Concurrent Web Connections - IIS Server

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Concurrent Web Connections - IIS Server

Post 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.
Locked