SNMP & JAVA

Hi,

I have several java applivation working in the network and am now looking for a good maintenance method to it.
I thought of using SNMP to be independent. As i am new to SNMP i might have some conceptional erros, that' s why i am asking if my idea sounds good....

I decided on SNMP as all mangement tools i know support this (e.g. HP, MON,...)

As far as I know SNMP supports two kinds of logging.

SNMP Trap means sending unasked information in the network? Of course there should be a snmp service collecting it...
and

interaction with program to get status and logging information or recieve events.

As all my java apps use java.util.logging
I thought of implementing a new LogHandler who does nothing then piping the java.util.logger. messages to the SNMP Server via SNMP so a SNMPHandler for java.util.logging

Additional I wanted to add the functionality to this loghandler to filter all logmessages for predefined keywords. and upon occurence of one of those fire an event for the SNMP Management. As I have limited all Logmessages to special ErrorCodes this will mean no change to the code of any of my apps.

for this task i found two open source libs:
http://edge.mcs.drexel.edu/GICL/people/sevy/snmp
and
http://www.snmp4j.org

second seems to be the better.

Can anyone help me fullfilling my task (implementing a SnmpLogHandler) with the following fetaures:
1.) dump logmessages to snmp Management
2.) fire events to snmp Management

All hints and explanation and of course code snippets are welcome

thanks
LVL 6
mightyoneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mightyoneAuthor Commented:
another idea would be to set up a new JavaBased Server witch accepts continious logging from the java apps by configuring the logging to be of type java.util.logging.SocketHandler but then same problem with the snmp connection..
0
ucoolCommented:
By the way, to manage Java applications, you can use JMX. More info can be seen from: http://java.sun.com/products/JavaManagement/
0
aozarovCommented:
>> I thought of implementing a new LogHandler who does nothing then piping the java.util.logger. messages to the SNMP Server via SNMP so a SNMPHandler for java.util.logging
You can use this known appender for that: http://www.m2technologies.net/asp/snmpTrapAppender.asp
This appender will send Traps to an NMS based on your log4j messages.

I recommend using www.sf.net/projects/joesnmp which is an easy to use LGPL Java based snmp stack for any other snmp requirements: like collecting data from agents.
BTW, the above appender is using joesnmp as well.

I agree with ucool that JMX with an rmi connector (or similar) can provide the means to manage Java applications remotely.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mightyoneAuthor Commented:
Thanks so far will start checking your hints after easter.....

happy easter folks!
0
mightyoneAuthor Commented:
Wow that is what I was looking for,

thanks !
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.