Previous Topic: watch procgroupex Directive--Add Entries to the Process Group Monitor Table (UNIX only)Next Topic: edgewatch Utility--Monitor Process Groups


Process Group Monitoring Examples

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
101

Indicates that this entry will occupy row 101 (pgmonIndex=101) in the Process Group Monitor table.

0x00

Indicates the default behavior.

60

Indicates that the agent should check the xterm process group every 60 seconds.

warning

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
12

Indicates that this entry will occupy row 12 (pgmonIndex=12) in the Process Group Monitor table.

0x00

Indicates the default behavior.

60

Indicates that the agent should check the emacs process group every 60 seconds.

major

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' ''
13

Indicates that this entry will occupy row 13 (pgmonIndex=13) in the Process Group Monitor Table.

0x00

Indicates the default behavior.

60

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.

More Information

Configure Text Pattern Exclusion

Regular Expression Examples

Perl Compatible Regular Expression (PCRE) Support