[ https://issues.apache.org/jira/browse/CLOUDSTACK-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618714#comment-13618714 ]
Anshul Gangwar commented on CLOUDSTACK-1863: -------------------------------------------- what is the time difference between making the changes in log4j-cloud.xml and generating an alert? You have to wait for enough time, 2-3 minutes after making the changes. They take some time to reflect and in transition period no trap will be generated. > 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