Hello,
I need to monitor java heap memory on one of the Linux server, so I Installed NRPE and the plugin check_jmx (https://assets.nagios.com/downloads/nag ... 1520310510) along with the jmxquery.jar file.
But, after executing the below command there is a Java error that appears.
[nagios@hostname libexec]$ ./check_jmx -U service:jmx:rmi:///jndi/rmi://hostname:9000/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 4248302272 -c 5498760192
Attached is the error which is thrown out after executing the above command.
Also we are using the ports 9000 and 7001, but both of these gives the same error. I tried to replace ///jndi/rmi://hostname:9000/ with //jndi/rmi://localhost:9000/ and ///jndi/rmi://127.0.0.1:9000/, but no luck.
We also tried to specify the JAVA_HOME in the .bash_profile, But that doesn't work.
Could you please help us with this.
Thanks,
Sayali
Errors while executing plugin check_jmx
Errors while executing plugin check_jmx
You do not have the required permissions to view the files attached to this post.
Re: Errors while executing plugin check_jmx
Did you follow any specific documentation when configuring the Java application to accept JMX connections? Can you share how JMX was configured within the remote application?
It's worth mentioning check_jmx will not work with Jolokia or other popular third-party JMX "agents". It was built specifically for vanilla JMX connections.
It's worth mentioning check_jmx will not work with Jolokia or other popular third-party JMX "agents". It was built specifically for vanilla JMX connections.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Errors while executing plugin check_jmx
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.