I need to check how many users are connected to server for specific applications through a browser. I'm mainly interested in Oracle. My server runs RHEL.
How to check how many Oracle user sessions are running
users;oracle database
So is it possible to check how many sessions are running and will it be possible to check for http also?A web application needs to be configured or programmed to enumerate active sessions, but for a list of users and idle times for SSH sessions...w | tr -s   | cut -d   -f 1,5 | tail -n +3See the NOTES section in the man page for w. The line above produces something like this:username1 0.00susername2 48.08sOr, only idle times:w | tr -s   | cut -d   -f 5 | tail -n +3Or, just a count of SSH sessions: w | tr -s   | cut -d   -f 5 | tail -n +3 | wc -l