File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat Application Server adding a plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Application Server adding a plugin" Watch "Tomcat Application Server adding a plugin" New topic
Author

Tomcat Application Server adding a plugin

Johnn Nash
Greenhorn

Joined: Dec 08, 2010
Posts: 1

I am working on adding a snmp plugin (SNMP4J) to the Tomcat Application Server. What area of the application server I should be looking into to get this done? In other words, any specific class or directories that I should be looking into for making any modification. If not for this snmp plugin is there any other way of having a snmp manager run on the Application Server? I would greatly appreciate your help on this.







Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

Welcome to the JavaRanch!

I'm guessing that you want to provide SNMP agent functionality. It's been a while, but I think there's actually some SNMP support built into the JVM, so you might want to check that.

SNMP agents are free to present whatever MIBs they wish, but they won't just invent MIBs, so excluding whatever SNMP support the JVM gives you (if any), you're on your own.

There are several ways I could spin this. With Linux/Unix net-snmp, I'd probably write a small agent app as a net-snmp plugin and have that app query the Tomcat server, possibly using JMX as the java-to-java transport and then having the SNMP agent translate JMX data to MIB form. You could also query the webapps using some sort of web services or REST query facility.

Actually putting SNMP code into the webapps would probably not be as flexible.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Application Server adding a plugin
 
Similar Threads
Deploying of application in tomcat
SNMP Agent
Monitoring of server using JMX and SNMP
IIS and Apache Tomcat
BIRT plugin for Netbeans