mightyone
asked on
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
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
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks so far will start checking your hints after easter.....
happy easter folks!
happy easter folks!
ASKER
Wow that is what I was looking for,
thanks !
thanks !
ASKER