Page 1 of 1

Java Application monitoring through JMX in nagios

Posted: Mon Mar 18, 2019 6:57 am
by mohan23
Hi Team,

I would like to monitor JVM metrics shown in below link for webmethods-universal-messaging application :

https://communities.ca.com/community/ca ... -available

Can you tell me what are the possibilities to get all mentioned metrics in above URL in nagiosxi.

Im trying to monitor few metrics like jvm heap size ..etc using check_jmx but im getting below error:

[batman@lxvapp1reaiqa23 nagios]$ ./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:9978/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 4248302272 -c 5498760192
./check_jmx: line 6: java: command not found
[batman@lxvapp1reaiqa23 nagios]$

Is this something we need to do additional configuration on application java or what exactly?

Re: Java Application monitoring through JMX in nagios

Posted: Mon Mar 18, 2019 1:57 pm
by cdienger
Is the check_jmx command being run on the nagios server or the remote server running jmx ? It should be run on the remote machine since it tries to connect to the localhost. Once that is configured and works, check_nrpe can be used on the nagios server to execute the command. See https://assets.nagios.com/downloads/nag ... ios-XI.pdf for details.

I'm not aware of any plugins specific to the webmethods-universal-messaging application. Can you tell me what possibilities it has to make this data available to an external server like Nagios?