usercount
Name
usercount -- Reports on the number of users logged in to the system.
Description
Usercount can check the total number of users on the system, or
report on how many times a specific user is logged in.
On Linux and Solaris, user information is obtained from the
"/var/run/utmp" or "/var/run/utmpx" files. These files exist
by default and are used by commands like "who".
Usercount is not available on Windows platforms.
Configuration
Usercount may be configured to report on the total number
of users logged into the system with "checkAll". This may
be set to "1" or "0". Alternatively any number of
user names may be given with "checkUser". By default if no
configuration is given usercount will report the total number
of users.
config
{
checkUser = jsmith
checkUser = bob
}
|
Thresholds
One threshold may be set for usercount with the name "count". This
will compare against the total user count on the system.
Any of the basic
logical operators are allowed (==, !=, <, >, <=,
>=). For example:
# Example threshold for usercount
thresh1.threshold = UserCount.count > 50
|
So if there are more than 50 users on the system, the preceeding
threshold will become crossed.
History Data
If configured to report on total users, usercount will save
this total count. If specific users are given it will save
the total login counts for each user. This data,
using the RSP History Viewer or RSP Web tools, can be used
to show trends in users on the system.