[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13629838#comment-13629838
 ] 

Anshul Gangwar commented on CLOUDSTACK-1863:
--------------------------------------------

Problem seems to be with your log4j configuration file. I am not sure about the 
case when the code is working fine but you are getting 
java.lang.ClassNotFoundException: 
org.apache.cloudstack.alert.snmp.SnmpTrapAppender in logs. If the 
ClassNotFoundException is there then code should also not work. But that is 
working fine. Try creating new setup and then check for this exception. 
Probably your log4j is in inconsistent state after you added confusing loggers.
                
> SNMP:fail to generate SNMP alers when multiple SNMP servers configured
> ----------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1863
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1863
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>         Environment: MS:10.147.59.110
> CloudStack-non-OSS-MASTER-156-rhel6.3.tar.gz
>            Reporter: sadhu suresh
>            Assignee: Anshul Gangwar
>            Priority: Critical
>
> No snap traps are received when we configure multiple SNMP trap receivers .
> Steps:
> 1.install and register the snmp server.
>  i.e add the SNMP server info in the file: log4j-cloud.xml as  specified in FS
> 2.generate  CS alerts 
> 3.later configure  another snmp server(configured multiple snmp severs as 
> mentioned in the FS)
> 4.generate alerts  and check 
>  <appender name="SNMP" 
> class="org.apache.cloudstack.alert.snmp.SnmpTrapAppender">
>       <param name="Threshold" value="DEBUG"/>
>       <param name="SnmpManagerIpAddresses" 
> value="10.147.59.110,10.147.38.236"/>
>       <param name="SnmpManagerPorts" value="162,162"/>
>       <param name="SnmpManagerCommunities" value="public,public"/>
>       <layout 
> class="org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayout">
>          <param name="PairDelimiter" value="//"/>
>          <param name="KeyValueDelimiter" value="::"/>
>       </layout>
>    </appender>
>  <logger name="org.apache.cloudstack.alerts" additivity="false">
>       <level value="WARN"/>
>       <appender-ref ref="SYSLOG"/>
>       <appender-ref ref="CONSOLE"/>
>       <appender-ref ref="FILE"/>
>       <appender-ref ref="SNMP"/>
>    </logger>
>    <logger name="org.apache.cloudstack.alerts" additivity="false">
>       <level value="WARN"/>
>       <appender-ref ref="SYSLOG"/>
>       <appender-ref ref="CONSOLE"/>
>       <appender-ref ref="FILE"/>
>       <appender-ref ref="SNMP"/>
>    </logger>
> Actual result:
> No snap traps are received for CS alerts when we configure multiple SNMP 
> traps .
> MSIP :10.147.59.110
> Expected Result:
>  generated Traps should be delivered to multiple trap receivers.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to