I'm trying to supervise my Tomcat 7 application using JAVA APPLICATION SERVER MONITORING VIA SNMP Template
I'm following the guide and it seems that I have to 2 Java parmeters in catalina.bat:
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.snmp.port=1161
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.snmp.interface=0.0.0.0
Tomcat doesn't start when I add -Dcom.sun.management.snmp* to catalina, did someone try this doc before so he can tell me how can I configure that ?
Open Tomcat configuration: Start > All Programs > Apache Tomcat > Configure Tomcat.
Open the Java tab, and then add the following lines to the Java Options box:
Go to the Windows Services console.
Right-click the Apache Tomcat service.
Click the Log On tab, and then select Log on as this account.
Click Browse, find the user “Administrator” and type the Administrator password twice.
In the Tomcat Configuration window, return to the General tab, and then start the service.
Open the file %TOMCAT_HOME%\bin\catalina.bat and add the following lines into the Debug, Run and Start sections (where%TOMCAT_HOME% is the path to your Tomcat installation):
set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.snmp.port=1161"
Run %TOMCAT_HOME%\bin\startup.bat to start Tomcat.
Open $TOMCAT_HOME/bin/catalina.sh and then add the following lines into Debug, Run and Start sections (where%TOMCAT_HOME% is the path to your Tomcat installation):
Run $TOMCAT_HOME/bin/startup.sh command to start Tomcat.
Thank you aLTeReGo its fixed and tested with Tomcat 7.
Also tested it on Tomcat 6.0.32 and works fine, but components are not OK
"SNMP monitor execution error. No such instance currently exists at this OID."
components are :
1/Thread Instant Blocked Count
2/Thread Instant Blocked Time (ms)
4/Thread Instant Wait Time (ms)
They are working fine in Tomcat 7 so I guess we need to reviw OIDs on Tomcat 6
Mohamed Ali Bechamki
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process. Learn more today by joining now.