Zabbix jboss monitored by zabbix

jbossjmxzabbix

I try monitor JBoss by zabbix. I create Template and HOST. In Host I use JMX Interfaces. But when I enable this host I see this error:

"java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.Connect.

Please give me some advice, how I can fix it?.

Regards
Mick

Best Answer

I got Zabbix to monitor JBoss using the following link.

http://skajla.blogspot.com/2010/07/jboss-monitoring-using-zabbix.html

It basically requires you to enable JMX on your server. Then run his .jar file server-side through UserParameters.

UserParameter=Daemon_Threads,java -jar /opt/skajla-JMXClient.jar 127.0.0.1 9999 admin jmxpass java.lang:type=Threading DaemonThreadCount

Just make sure your Zabbix Agent has permissions to run the .jar file.

If it returns some garbage values, you may need to change some of JMX parameters, which I had to do.