Schedule demo

Java Runtime - AddMonitor API


Here is how you can use the AddMonitor API to add a Java Runtime monitor:

Syntax

https://[HOST]:[PORT]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&displayname=[DISPLAYNAME]&host=[HOST]&port=[PORT]&jndiurl=[JNDIURL]&jmxEnabled=on&jmxurl=[URL]&authEnabled=on&username=[Username]&password=[Password]

Supported HTTP methods: POST

Allowed roles: Administrator

Request Parameters

The parameters involved in the API request are described below. Also, refer the list of common request parameters.

FieldDescription
typeThe type of the monitor you want to add. Value should be Java Runtime.
hostThe name of the host where the monitor is running.
portThe port number where the Java Runtime monitor is running.
jndiurlThe JNDI name. The default value is jmxrmi.
jmxEnabledTo enable customized JMX URL, the value of jmxEnabled should be on (jmxEnabled=on). Then, give the JMX URL as value for the parameter jmxurl (jmxurl=[URL])
jmxurlThe customized JMX URL. This parameter can be used only if the value of jmxEnabled is on.
authEnabledTo enable authentication, the value of authEnabled should be on. If the value is on, also specify the username and password used for authentication.
username, passwordIf the value for authEnabled is on, also specify the username and password used for authentication. (username=[Username]&password=[Password])

Sample Request

https://apm-prod-server:8443/AppManager/xml/AddMonitor?apikey=aaaaaabbbbbbccccccddddddeeeeee&type=Java Runtime&displayname=apmjava&host=myesuraj&port=1099&jndiurl=/jmxrmi&jmxEnabled=on&jmxurl=[URL]&authEnabled=on&username=admin&password=appman

Loved by customers all over the world

"Standout Tool With Extensive Monitoring Capabilities"

It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.

Reviewer Role: Research and Development

carlos-rivero
"I like Applications Manager because it helps us to detect issues present in our servers and SQL databases."
Carlos Rivero

Tech Support Manager, Lexmark

Trusted by thousands of leading businesses globally