4.62 UserSessions

Use this Knowledge Script to monitor the number of user accounts logged into a computer. This Knowledge Script raises an event if the number of user sessions crosses the threshold you specify. The top number of user sessions are reported in the event and data detail messages.

4.62.1 Resource Object

UNIX computer icon

4.62.2 Default Schedule

The default interval for this script is Every 5 minutes.

4.62.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Collect data on user sessions? (y/n)

Select Yes to collect information for virtual memory usage for charts and reports. If set to Yes, this script returns the number of current user accounts that are logged into the computer. The default is unselected.

Session Event Options

Raise event if session thresholds exceeds? (y/n)

Select Yes to raise an event if the number of active sessions crosses the threshold you specify. The default is Yes.

Event severity level

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the number of user sessions exceeds the threshold. The default is 5.

Minimum number of users logged in

Type a threshold for the minimum number of active user sessions. The default is 0.

Maximum number of users logged in

Type a threshold for the maximum number of active user sessions. The default is 8.

User Session Options

Raise event for restricted Users? (y/n)

Select Yes to raise an event if restricted user accounts log in. The default is Yes.

Event severity level

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the number of user sessions exceeds the threshold. The default is 40.

Restricted User list (separated by commas and no spaces)

Specify the user accounts that should not log into the computer, separated by commas with no space.

Enable debugging? (y/n)

Set to Yes to enable debugging. The default is unselected.