cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sadhu suresh (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CLOUDSTACK-1863) SNMP:fail to generate SNMP alers when multiple SNMP servers configured
Date Wed, 24 Apr 2013 06:47:16 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

sadhu suresh reopened CLOUDSTACK-1863:
--------------------------------------


on fresh setup also its comming .not provided any SNMP server details also. code worked fine
but still see this exceptions. you can alsi check  any fresh  setup.

Its also happening for syslogs also:


4j:ERROR Could not create an Appender. Reported error follows.
java.lang.ClassNotFoundException: org.apache.cloudstack.syslog.AlertsSyslogAppender
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at org.apache.log4j.helpers.Loader.loadClass(Loader.java:198)
        at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:247)
        at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
        at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
        at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
        at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:436)
        at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:999)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:867)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:755)
        at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMConfigurator.java:1120)
        at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
        at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:58)
        at org.apache.log4j.xml.XMLWatchdog.<init>(DOMConfigurator.java:1112)
        at org.apache.log4j.xml.DOMConfigurator.configureAndWatch(DOMConfigurator.java:735)
        at org.apache.log4j.xml.DOMConfigurator.configureAndWatch(DOMConfigurator.java:718)
        at com.cloud.utils.LogUtils.initLog4j(LogUtils.java:32)
        at com.cloud.bridge.service.EC2MainServlet.init(EC2MainServlet.java:66)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)



For SNMP:

Network Service is configured.
INFO  [utils.component.ComponentContext] (Timer-1:) Configuring com.cloud.network.vpc.VpcManagerImpl_EnhancerByCloudStack_b4718e6f
log4j:ERROR Could not create an Appender. Reported error follows.
java.lang.ClassNotFoundException: org.apache.cloudstack.alert.snmp.SnmpTrapAppender
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1483)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:188)
        at org.apache.log4j.helpers.Loader.loadClass(Loader.java:198)
        at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:247)
        at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
        at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
        at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
        at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:436)
        at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:999)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:867)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:755)
        at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMConfigurator.java:1120)
        at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
        at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:58)
        at org.apache.log4j.xml.XMLWatchdog.<init>(DOMConfigurator.java:1112)
        at org.apache.log4j.xml.DOMConfigurator.configureAndWatch(DOMConfigurator.java:735)
        at org.apache.log4j.xml.DOMConfigurator.configureAndWatch(DOMConfigurator.java:718)
        at com.cloud.utils.LogUtils.initLog4j(LogUtils.java:32)
        at com.cloud.bridge.service.EC2MainServlet.init(EC2MainServlet.java:66)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)

[management]# grep -i "ClassNotFoundException: org.apache.cloudstack.alert.snmp.SnmpTrapAppender"
catalina.out |wc -l
28
[management]# grep -i "java.lang.ClassNotFoundException: org.apache.cloudstack.syslog.AlertsSyslogAppender"
catalina.out |wc -l
28



MS IP:
10.147.59.83
10.147.38.253

T
                
> 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
>             Fix For: 4.2.0
>
>
> 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

Mime
View raw message