Hello everyone!
I am trying to set up JMX Jenkins monitoring through Zabbix. I found a Jenkins plugin that adds a template with some discovery rules (https://github.com/hudson2-plugins/z...gration-plugin), and I have built it and installed it in Jenkins. It's set up pointing to the appropiate host, where the Zabbix server is installed.
I have googled quite a bit regarding JMX and Java monitoring and all that. Here is how I start up my Jenkins instance (in my Windows machine)
(formatting is bad but all that is one single line
)
Here is what my JMX interface configuration looks like, for my machine:

Here is what my zabbix_server.conf file has to say about Java Gateways and such:
JavaGateway=easy-ifernande1
JavaGatewayPort=12345
StartJavaPollers=5
Here is the error I see:

And from the logs, with some more lines wrapped around (log level 4):
I have installed the zabbix_java_gateway package, but I don't know if that's necessary, if it has to be running at the same time, etc. etc.; Furthermore, when installing it created a .service file, but as much as I try to enable it with systemctl I can't see it on the list.
As an example, here is the config of one of the items included in the template from the Jenkins plugin:

This is my zabbix version:
I don't believe it's the Jenkins plugin, since I can see MBeans with information on them. I can telnet both from my machine to the zabbix URL, and from the zabbix server machine to my machine on port 12345.
Any suggestions? I will accept both suggestions to fix this and also suggestions to put Jenkins monitoring in Zabbix, I won't be picky
Cheers!
I am trying to set up JMX Jenkins monitoring through Zabbix. I found a Jenkins plugin that adds a template with some discovery rules (https://github.com/hudson2-plugins/z...gration-plugin), and I have built it and installed it in Jenkins. It's set up pointing to the appropiate host, where the Zabbix server is installed.
I have googled quite a bit regarding JMX and Java monitoring and all that. Here is how I start up my Jenkins instance (in my Windows machine)
Code:
%BASE%\jre\bin\java -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=10.20.197.20 -jar "%BASE%\jenkins.war" --httpPort=8080
)Here is what my JMX interface configuration looks like, for my machine:
Here is what my zabbix_server.conf file has to say about Java Gateways and such:
JavaGateway=easy-ifernande1
JavaGatewayPort=12345
StartJavaPollers=5
Here is the error I see:
And from the logs, with some more lines wrapped around (log level 4):
Code:
4434:20150917:111659.971 End of substitute_key_macros():SUCCEED data:'jmx["org.hudsonci.plugin.jmxmonitoring:type=Jenkins","Executors"]' 4434:20150917:111659.971 In substitute_simple_macros() data:'12345' 4434:20150917:111659.971 In substitute_simple_macros() data:EMPTY 4434:20150917:111659.971 In substitute_simple_macros() data:EMPTY 4434:20150917:111659.971 In get_values_java() host:'EASY-IFERNANDE1' addr:'easy-ifernande1.dice.ad.ea.com' num:1 4434:20150917:111659.974 getting Java values failed: cannot connect to [[easy-ifernande1]:12345]: [13] Permission denied 4434:20150917:111659.974 End of get_values_java() 4434:20150917:111659.974 In deactivate_host() hostid:10133 itemid:25077 type:16 4434:20150917:111659.974 query [txnlev:1] [begin;] 4434:20150917:111659.975 query [txnlev:1] [update hosts set jmx_disable_until=1442485079,jmx_error='cannot connect to [[easy-ifernande1]:12345]: [13] Permission denied' where hostid=10133]
As an example, here is the config of one of the items included in the template from the Jenkins plugin:
This is my zabbix version:
Code:
Zabbix server v2.4.6 (revision 54796) (10 August 2015) Compilation time: Aug 10 2015 17:18:14
Any suggestions? I will accept both suggestions to fix this and also suggestions to put Jenkins monitoring in Zabbix, I won't be picky

Cheers!
Comment