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
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.
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.
"Enterprise Application servers" usually use JMX for internal communication and even some CLI tools connect to JMX to send commands to application server. In that case JMX is configured, to only communicate with that tools for security reasons... accept only localhost connections and specific certificates generated during install. Investigate your JBoss JMX settings and its ACL settings. If you are satisfied with just JVM monitoring, you can find inspiration here: JVM SNMP monitoring This way of monitoring could live independently of other settings.