Usage

Usage: check_jmx -U <service_url> -O <object_name> -A <attribute_name>
    [-K <compound_key>] [-w <warn_threshold>] [-c <crit_threshold>]
    [-o <operation_name>] [--username <username>] [--password <password>]
    [-u <UOM>] [-v] [-h]

Options

-U
JMX service URL. For example:
  service:jmx:rmi://<host>:<port>/jndi/rmi://<host>:<port>/jmxrmi
-O
Object name to be checked. For example:
  java.lang:type=Memory
-A
Attribute name. For example:
HeapMemoryUsage
-K
Attribute key. Only needed if attribute is a composite data structure. For example:
used
-w
Warning threshold value/range. Format has to correspond to type of object retrieved. Supported types are Byte, Short, Integer, Long, Double, Float, BigInteger, BigDecimal, and String regular expressions.
-c
Critical threshold value/range. Format has to correspond to type of object retrieved. Supported types are Byte, Short, Integer, Long, Double, Float, BigInteger, BigDecimal, and String regular expressions.
-o
Operation to invoke on MBean after querying value. Useful to reset statistical data or counters.
-u
UOM (unit of measurement). One of B, KB, MB, TB, s, us, ms, or c for a continuous counter. It is up to third party programs to interpret these performance data units.
--username
Username, if JMX access is restricted. For example:
monitorRole
--password
Password
-h
Help page
-v
verbose (optional)

Example

check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:10000/jmxrmi -O "java.lang:type=Memory" -A HeapMemoryUsage -K used --username monitorRole --password password -u B