Link to home
Create AccountLog in
Avatar of glo-nsa
glo-nsaFlag for United States of America

asked on

Add snmp OID for a java app?

I would like to use snmp to monitor the status of a java app, Novell Teaming. It is running on Suse Linux Enterprise Server 10 SP2. Is there a way to assign an OID to the app so that I can monitor it? I know that I can use the snmp process monitor to monitor java, but there is no way to distinguish between multiple java apps, that only tells me if java is running, not Teaming.

Thanks,
Toney.
Avatar of Steve Jennings
Steve Jennings

You need to read up on SNMP to answer your own question. If the app doesn't have built in monitorable functions then  . . . good luck. If you can modify the app and use private OIDs and assign them yourself then . . . .yes, you can.

When you do a "ps -ef" and grep for "Teaming" or some such, can you determine that the app is running by that method?

Good luck,
SteveJ
Avatar of glo-nsa

ASKER

SteveJ,

I have been reading up on SNMP for weeks. Finding myself unable to answer my own question, I thought I might ask here at Experts Exchange.

Yes, the output of ps -ef | grep teaming will show the running app. More accurately, grep for icecore show the teaming app:


Thanks,
Toney.
# ps -ef | grep icecore
root     25513     1  2 08:41 pts/1    00:00:34 /usr/java/default/jre/bin/java -Djava.util.logging.config.file=/opt/icecore/apache-tomcat/conf/logging.properties -Djava.awt.headless=true -Dibmjdkonly.javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms256m -Xmx1500m -Xss2m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -Duser.timezone=GMT -Dcom.sun.management.jmxremote -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/icecore/apache-tomcat/endorsed -classpath /opt/icecore/apache-tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/icecore/apache-tomcat -Dcatalina.home=/opt/icecore/apache-tomcat -Djava.io.tmpdir=/opt/icecore/apache-tomcat/temp org.apache.catalina.startup.Bootstrap start
root     26375  4080  0 09:01 pts/0    00:00:00 grep icecore

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of glo-nsa
glo-nsa
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of glo-nsa

ASKER

Solution presented independently.