You can define a JMX-MBean Subscribe (JMXS_JOB) job to monitor an MBean for a single notification or monitor continuously for notifications. You can filter the notifications the job monitors by attributes or by type of notifications.
Note: To run these jobs, your system requires CA WA Agent for UNIX, Linux, or Windows and CA WA Agent for Application Services.
Required Statements
To define a JMX-MBean Subscribe job, you must define the following statements:
Optional Statements
You can specify the following optional statements for a JMX-MBean Subscribe job:
Example: Monitor for Changes to a Specific MBean Attribute
Suppose that you want to set up continuous monitoring for changes to the cachesize attribute of the MBean named Config. The job filters the notifications the MBean sends by attribute. Each time the cachesize attribute changes, an alert named CHGA is sent.
AGENT APPAGENT URL service:jmx:rmi:///jndi/rmi://localhost:9999/server MBEAN 'DefaultDomain:index=1,type=Config' CONTINUOUS(CHGA) ATTRIBUTESFILTER cachesize
Example: Monitor for Changes to Any MBean Attribute
Suppose that you want to set up continuous monitoring for changes to any attribute of the MBean named Config. Each time an attribute changes, an alert named CHGA is sent.
AGENT APPAGENT URL service:jmx:rmi:///jndi/rmi://localhost:9999/server MBEAN 'DefaultDomain:index=1,type=Config' CONTINUOUS(CHGA) TYPESFILTER jmx.attribute.change
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|