This section contains sample configuration file directives for process group monitoring. You can add these entries using watch procgroup in the sysedge.cf file.
Example: Monitor the xterm Process Group
The following example configures the agent to monitor the xterm process group:
watch procgroup 'xterm.*' 101 0x00 60 'Watch xterms' '' warning
Indicates that this entry will occupy row 101 (pgmonIndex=101) in the Process Group Monitor table.
Indicates the default behavior.
Indicates that the agent should check the xterm process group every 60 seconds.
Indicates that a process group change trap will contain a warning severity.
No action is specified, so the agent invokes no command when it sends a trap.
Example: Monitor the emacs Process Group
The following example configures the agent to monitor the emacs process group:
watch procgroup 'emacs.*|xmibmgr' 12 0x00 60 'Watch emacs' '' major
Indicates that this entry will occupy row 12 (pgmonIndex=12) in the Process Group Monitor table.
Indicates the default behavior.
Indicates that the agent should check the emacs process group every 60 seconds.
Indicates that a process group change trap will contain a major severity.
No action is specified, so the agent invokes no command when it sends a trap.
Example: Monitor the DT Process Group
The following example configures the agent to monitor the DT process group:
watch procgroup 'dt/bin' 13 0x00 60 'Watch DT stuff' ''
Indicates that this entry will occupy row 13 (pgmonIndex=13) in the Process Group Monitor Table.
Indicates the default behavior.
Indicates that the agent should check the DT process group every 60 seconds.
No action is specified, so the agent invokes no command when it sends a trap.
Copyright © 2013 CA. All rights reserved. |
|