Example of a JMX Polling Instance

Home  Previous  Next

Aim

In this example, we will setup the monitoring of the “DataStore” of BMC Portal (the Oracle database) as seen by Portal’s Java Application Server (the JBoss Application Server in BMC Portal reports whether it is able to connect to the DataStore). We use JMX to retrieve value of the “StateString” attribute of the “service=DatabaseAvailability” key property in the “websdk.util” domain on BMC Portal’s integrate JBoss Application Server.

Procedure

1.Create a new “JMX Polling – Jboss” class:
Enter the credentials to connect to the JBoss Application Server (default is “admin/admin”)
JBoss version: “JBoss 4.x”
Port: 9379
2.Add a new JMX polling instance:
Label: Database Availability from JBoss
Domain Name: websdk.util
Key Property: service=DatabaseAvailability
Attribute: StateString
3.Add a new String Search:
Label: “NON Started?”
CRITERION 1: Line must NOT contain “Started”, case insensitive
Alert threshold on the “Matching Lines” parameter: When the “.*” regular expression is found (once or more), trigger an alarm immediately

Result

We will get an alert as soon as the JBoss Application Server reports that it cannot connect to the DataStore.