webstuff

Well-Known Member
Jul 19, 2011
76
2
58
whats the best way to view how many people are on your server at once?

and

viewing bandwidth usage would help alot too.. maybe process's... I didn't know if there was some sort of plugin in or something..
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Do you mean how many users are on the server in SSH, or where precisely? A server has many different protocols and there isn't one location to view how many people are on the machine for each different one. You can check in netstat all of the incoming and outgoing connections, but what are you wanting to know precisely?
 

webstuff

Well-Known Member
Jul 19, 2011
76
2
58
Just a good idea to see how many people are connected to the server at once.. I didn't know if there was a special way to do it or not.. Is ssh the best way?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello :)

There are several methods for a user to connect to a server. Is there a specific service you are attempting to monitor? For example, the following command can be used to determine the number of connections to Apache on port 80:

Code:
# netstat -n | grep :80 | wc -l
Thank you.
 

webstuff

Well-Known Member
Jul 19, 2011
76
2
58
thanks thats pretty cool.. but im looking for something that will give you more of a live view.. current... or is there some program that logs it all?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello :)

If you are looking for Apache statistics, you may also find the following option within Web Host Manager useful:

"WHM >> Server Status >> Apache Status"

Full documentation on the data that is displayed on this option can be found at:

Apache Status

Thank you.
 

webstuff

Well-Known Member
Jul 19, 2011
76
2
58
thanks again.. one last question is there a command that will show all live people on port 80 and will continue to update by every so many minutes?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
In root SSH, type the following:

Code:
watch -n 30 "httpd fullstatus"
This puts the command httpd fullstatus, which is what WHM > Server Status > Apache Status is using, into a watch window that will update every 30 seconds. If you wish to have it update sooner or longer, simply changed the 30 to whatever second interval is preferred.
 

webstuff

Well-Known Member
Jul 19, 2011
76
2
58
Is there anyway to get a live graph going? maybe by the minute or every 5 minutes or something like that? I was looking at VNStat or bwm-ng... But wasn't sure if there was something better or not.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
You could install the Munin Plugin via:

"WHM >> cPanel >> Manage Plugins"

You can find more details about Munin to determine if it's the type of tool you are looking for at:

Munin - Trac

Thank you.
 

webstuff

Well-Known Member
Jul 19, 2011
76
2
58
Does the munin - trac give you real time monitoring graph?

My biggest is live bandwidth ... ( it updates by itself correct? I dont have to keep on hitting refrefresh do I ? ) Do you know what the smallest amount of time it updates by too?
 
Last edited:

Infopro

Well-Known Member
May 20, 2003
17,112
513
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Does the munin - trac give you real time monitoring graph?

My biggest is live bandwidth ... ( it updates by itself correct? I dont have to keep on hitting refrefresh do I ? ) Do you know what the smallest amount of time it updates by too?
Have a closer look at the Munin FAQ for more Info.

There are also other resources to consider when searching for more functionality for your server, take WebHostingTalk as one example. Full screen bandwidth monitoring in real time?

If that one is not helpful, try one of these: Google Search of WHT: Real Time Bandwidth Monitoring

GL!
 

webstuff

Well-Known Member
Jul 19, 2011
76
2
58
So thats a no? Yea I did look through google... I found a lot of programs but looks like I will have to install stuff or try different programs for hours and hours.. Sorry I was just trying to save a lot of time by asking... To see if anyone knew off hand.

Thanks anyways.
 
Last edited:

Infopro

Well-Known Member
May 20, 2003
17,112
513
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
There is no built in functionality in cPanel/WHM to monitor bandwidth in real time, no.

Munin is an addon 3rd party product easily installed via WHM, but has its own community and FAQ area that would lead you to your answers about using it, faster than waiting for a forum reply here, IMO. Thats why I linked you to that page.
 

webstuff

Well-Known Member
Jul 19, 2011
76
2
58
This munin will be real enough for me. Thanks again cpanel!!!! Thanks for the wonderful support really.. :) You may mark this solved.