really really old post BUT yes it is easy to turn on JVM SNMP monitoring with jenkins.
SNMP is on UDP so you will not be able to use telnet to check is the service running. I made the same mistake at first!! DUH! :-o Use netstat: $ netstat -anp |grep 8020 udp6 0 0 127.0.0.1:8020 :::* - Make sure the snmp.acl file has correct permissions and ownership as described. Use snmpwalk from net-snmp-utils or other mib browser tools to check it's working. See the faq for getting through connection errors or authentication errors. mbrowser also worked and you can load in JVM MIB and see the names of the parameters you are looking at. Put the mib under /usr/share/snmp/mibs for snmpwalk to use. $ yum -y install net-snmp net-snmp-utils $ snmpbulkwalk -mALL -v2c -cpublic localhost:8020 . $ yum -y install mbrowser Same instructions but with link to MIB used JVM-MANAGEMENT-MIB.mib https://docs.oracle.com/javase/1.5.0/docs/guide/management/SNMP.html https://docs.oracle.com/javase/1.5.0/docs/guide/management/faq.html https://docs.oracle.com/javase/1.5.0/docs/guide/management/JVM-MANAGEMENT-MIB.mib OID 1.3.6.1.4.1.42 == enterprises.sun == .iso.org.dod.internet.private.enterprises.sun http://www.oid-info.com/cgi-bin/display?oid=1.3.6.1.4.1.42 I'm running jenkins under docker so "docker logs <containerid>" is helpful in case of errors. (docker run jenkins.sh which calls java <args> -jar jenkins.war). My docker run port mapping like this: -p $HOSTIP:8020:8020 Passing args like this including interface=0.0.0.0 to make it bind global not the local interface inside container: -Dcom.sun.management.snmp.acl.file=/var/jenkins_home/snmp.acl -Dcom.sun.management.snmp.port=8020 -Dcom.sun.management.snmp.interface=0.0.0.0 -- Sent from: http://jenkins-ci.361315.n4.nabble.com/Jenkins-users-f361316.html -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1550063311741-0.post%40n4.nabble.com. For more options, visit https://groups.google.com/d/optout.
