This Knowledge Script monitors CPU usage for all WTS sessions and monitors the CPU usage of the top number of sessions specified by you. If the total percentage of CPU usage for these sessions exceeds the threshold you set, an event is raised.
You can specify the number of top sessions to display in the detail message. The detail message includes the percentage of CPU usage used by each of the top sessions.
WTS Sessions
The default interval is Every 30 minutes.
Set the following parameters as needed:
|
Description |
How to Set It |
|---|---|
|
Raise event if CPU usage exceeds the threshold? |
Set to y to raise an event if the CPU usage exceeds the threshold you set. The default is y. |
|
Collect data for session CPU usage? |
Set to y to collect data for charts and reports. If set to y, the script returns the total CPU usage for the top set of sessions. The default is n. |
|
Threshold -- total CPU usage |
Specify a threshold for the maximum percentage of CPU resources WTS sessions can consume before raising an event. The default is 90. |
|
Number of top CPU usage sessions to show |
Specify the number of top sessions you want to display in the detail message. Specify 0 if you want to display all sessions. The default is 5. |
|
Event severity when CPU usage exceeds the threshold |
Set the event severity level, from 1 to 40, to indicate the importance of the event in which the CPU usage exceeds the threshold. The default severity level is 5. |