• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Tomcat Application Server adding a plugin

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.







 
Saloon Keeper
Posts: 28242
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Something must be done about this. Let's start by reading this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic