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.
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 } |
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.