Nagios Monitoring for JMX/JVM.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Nagios Monitoring for JMX/JVM.

Post by haile711 »

Hey tgriep,
Yeah, I have edited the jolokia-access.xml and repacked with <remote> tag remove to allow all access. I'm still getting "UNKNOWN - Error: 404 Error while fetching http://<hostname>:8080/jolokia/ :

404 Not Found". I can issue the same check command on the local server and it would give me a return "OK - Heap-Memory: 17.50% used (218.71 MB / 1.22 GB) | [MEMORY_HEAP_USED]=229332880B;;:1048576000;0;1310720000".. Thanks for helping btw!!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Monitoring for JMX/JVM.

Post by tgriep »

Could be an firewall blocking access to the server.
Try running this on the XI server to see if the firewall is open.

Code: Select all

nmap -p 8080 <IP address of your server>
Be sure to check out our Knowledgebase for helpful articles and solutions!
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Nagios Monitoring for JMX/JVM.

Post by haile711 »

hey tgriep,
I have ran the nmap and I got the following output "8080/tcp open http-proxy". I have edit the jolokia-access.xml to allow the nagios server, and also repack and redeployed the jolokia.war agent already. Thxs again!!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Monitoring for JMX/JVM.

Post by tgriep »

Can you login to the JMX server and check the log files for any errors?
Be sure to check out our Knowledgebase for helpful articles and solutions!
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Nagios Monitoring for JMX/JVM.

Post by haile711 »

Hey tgriep,
I am using a different plugin now, check_jmx, but for this I had to configured jboss to have jmx.remote enable. Thanks for helping out!! much appreciated.
P.S. If anyone got a monitoring plugin for CPU and Garbage Collection, please let me know. I'm trying to set this up now. Thanks again.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Monitoring for JMX/JVM.

Post by tgriep »

Your welcome. Is it alright if we close this post then?
Be sure to check out our Knowledgebase for helpful articles and solutions!
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Nagios Monitoring for JMX/JVM.

Post by haile711 »

yea tgriep you can closed it. Thanks
Locked