#vim/etc/snmp/snmpd.conf
Add at the end of the snmpd.conf file
Proxy-v 2c-c public 192.168.x.x:1161.1.3.6.1.4.1.42
# CD $JAVA _home/jre/lib/management
#vim management.properties
Find #com.sun.management.snmp.port=<port-number>
Change into com.sun.management.snmp.port=1161
Find #com.sun.management.snmp.interface=0.0.0.0
Change into com.sun.management.snmp.interface=192.168.x.x
#cp snmp.acl.template Snmp.acl
#vim SNMP.ACL-----Configure the JVM to allow access through SNMP
Found it
# ACL = {
# {
# communities = public, private
# access = Read-only
# managers = localhost
# }
# }
#
#
# trap = {
# {
# trap-community = Public
# hosts = localhost
# }
# }
Remove all #,localhost changes to native IP
#chmod management.properties Snmp.acl
# Vim/usr/local/resin/conf/resin.xml
Add it to <thread-max>10240</thread-max> below:
<jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.port=51517</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.ssl=false</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.authenticate=false</jvm-arg>
<jvm-arg>-Dcom.sun.management.snmp.port=1161</jvm-arg>
#service snmpd Restart
#/usr/local/resin/bin/resin.sh Stop-server Youyuan
#/usr/local/resin/bin/resin.sh Start-server Youyuan
Adding resin monitoring in cacti