Check number of web connections

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ryadus
Posts: 3
Joined: Sun Oct 12, 2014 3:03 am

Check number of web connections

Post by ryadus »

Hi,
I'm new to NAgios and I'm looking for a counter that can gives me the number of web connections to my website.
The same that we get using PerfMon for Windows:

Code: Select all

\Web Service(_Total)\\Current Connections
Thanks in advance for your help.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Check number of web connections

Post by abrist »

Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ryadus
Posts: 3
Joined: Sun Oct 12, 2014 3:03 am

Re: Check number of web connections

Post by ryadus »

Hi,

In WMI there is no performance counter.
I'm using NSclient and Windows Server monitoring wizard, but not able to find Performance Counters for current connections.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check number of web connections

Post by lmiltchev »

I'm using NSclient and Windows Server monitoring wizard, but not able to find Performance Counters for current connections.
Can you show us the actual command that you are running from the CLI and the output of it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ryadus
Posts: 3
Joined: Sun Oct 12, 2014 3:03 am

Re: Check number of web connections

Post by ryadus »

lmiltchev wrote:
I'm using NSclient and Windows Server monitoring wizard, but not able to find Performance Counters for current connections.
Can you show us the actual command that you are running from the CLI and the output of it?
Actually, I don't know which command to use to get my results. I'm asking about the command that can give me the current connection of a web service.
check_????
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check number of web connections

Post by lmiltchev »

You may try something like:

Code: Select all

./check_nrpe -H <client ip> -p 5666 -c CheckCounter -a "\\Web Service(_Total)\\Current Connections"
or

Code: Select all

./check_nt -H <client ip> -p 12489 -v COUNTER -l "\\Web Service(_Total)\\Current Connections"
You may need to play with "\" to deal with escaping issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked