[SNMP4J] snmpappender with log4j

Shweta shweta_naik at persistent.co.in
Wed Jul 16 11:17:12 CEST 2008


Has anyone trued using snmpappender in log4j.xml to send trap

I ve log4j.snmpappender.jar but not working

 

In log4j I ve set as follow

 

 

<appender name="ERROR_LOG" class="org.apache.log4j.ext.SNMPTrapAppender">


            <param name="ManagementHost" value="10.77.203.108"/>

            <param name="ManagementHostTrapListenPort" value="162"/>

            <param name="EnterpriseOID" value=".1.3.6.1.2.1.1.1.0"/>

            <param name="LocalIPAddress" value="10.77.203.108"/>

            <param name="GenericTrapType" value="1"/>

            <param name="SpecificTrapType" value="6"/>

            <param name="ApplicationTrapOID"
value=".1.3.6.1.4.1.24.12.10.22.64"/>

            <param name="CommunityString" value="public"/>

            <param name="SysUpTime" value="1000"/>

        <param name="Threshold" value="DEBUG"/>

            <layout class="org.apache.log4j.PatternLayout">

                    <param name="ConversionPattern"
value="%d,%p,[%t],[%c],%m%n"/>

            </layout>

      </appender>

 

 

Can u share some sample example in it?

 

Shweta Naik | Software Engineer-Telecom| Persistent Systems 

 <mailto:shweta_naik at persistent.co.in> shweta_naik at persistent.co.in  | Tel:
+91 (20) 3023 5449 

Innovation in software product design, development and delivery-
<http://www.persistentsys.com/> www.persistentsys.com

 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.



More information about the SNMP4J mailing list