Use this Knowledge Script to monitor memory usage for specified processes. The Knowledge Script monitors individual memory use for each specified process, and the total memory use for all specified processes. If a process is not found, the Knowledge Script assumes that the process is not currently running, and reports zero as the memory result.
If the memory use for any monitored process exceeds the threshold you set, AppManager raises an event.
HINT:This Knowledge Script does not detect invalid process names. If you enter an invalid process name, the Knowledge Script assumes that the process is not running, and reports zero as the result.
UNIX computer icon
The default interval for this script is Every 5 minutes.
Set the following parameters as needed:
Description |
How to Set It |
---|---|
Comma-separated list of process names |
Enter one or more process names, separated by commas and no spaces. The default is dtlogin. |
Create event for each specified process? (y/n) |
Set to y to raise events when the memory usage is over the threshold for individual processes. The default is y. |
Collect data for each specified process? (y/n) |
Set to y to collect data for charts and reports. If set to y, the script returns the memory usage for each process. The default is n. |
Maximum memory usage (KB) for each specified process |
Enter a maximum threshold for memory usage for each process. The default is 20000 KB. |
Create event for the sum of all specified processes? (y/n) |
Set to y to raise events when the combined memory usage for all specified processes is over the threshold. The default is y. |
Collect data on the sum of all specified processes? (y/n) |
Set to y to collect data for charts and reports. If set to y, the script returns the combined memory usage for all specified processes. The default is n. |
Maximum memory usage (KBs) for all specified processes together |
Specify a threshold for combined memory usage for all processes you are monitoring. The default is 32000 KB. |
Event severity level |
Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 8. |
Event severity for internal failure |
Set the event severity level, from 1 to 40, to indicate the importance of an event in which this job experienced an internal error. The default is 5. |
Enable debugging? (y/n) |
Set to y to enable debugging. The default is n. |