Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

SNMP configuration error : log4j-snmp-trap-appender

$
0
0
Hoping there is someone here who has had a successful setup to trap SNMP messages from the log4j framework using log4j-snmp-trap-appender ( http://code.google.com/p/log4j-snmp-trap-appender/ )

I've followed the instructions on the wiki page "Configuring HQ as an SNMP Trap Receiver" ( http://support.hyperic.com/display/DOC/Configuring+HQ+as+an+SNMP+Trap+Receiver )

Below is the error that is captured in the Agent log.

I guess the obvious questions are :-

1. When configuring the 'New Platform' what should the FQDN be ? There is no physical device but an application using the log4j Framework to send SNMP traps.
2. How about the "IP Address". Same as above since there is no phyical device with a name or IP address.
3.. When configuring the platform, what should the snmpip and snmpPort be ?

Thanking in advance.

===============================
2011-03-14 15:42:27,586 ERROR [catalina-exec-6] [org.hyperic.hq.ui.action.resource.common.inventory.EditConfigPropertiesAction@311] Invalid config org.hyperic.hq.appdef.shared.InvalidConfigException: Invalid configuration: Error contacting resource: Unable to connect to SNMP Agent (10.18.168.10:1620 v2c,public)

2011-03-14 15:42:27,592 INFO  [RuntimeAIEnabler1] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerImpl@780] Toggling Runtime-AI for 2:10101

2011-03-14 15:42:27,661 WARN  [MeasurementEnabler1] [org.hyperic.hq.measurement.server.session.MeasurementManagerImpl@1659] Error turning on default metrics, configuration (platform.type=Network Device,platform.ip=10.18.168.10,platform.name=TestLog4J_SNMPTrap,platform.id=10101,platform.fqdn=xxx.xxx.xxx.com,) couldn't be validated
org.hyperic.hq.appdef.shared.InvalidConfigException: Invalid configuration: Error contacting resource: Unable to connect to SNMP Agent (snmp:null null,null)
     at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1577)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.enableDefaultMetrics(MeasurementManagerImpl.java:1657)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.handleCreateRefreshEvents(MeasurementManagerImpl.java:1490)
        at sun.reflect.GeneratedMethodAccessor1141.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
        at org.hyperic.hq.monitor.aop.aspects.PerformanceMonitor.monitorServiceMethod(PerformanceMonitor.java:84)
        at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:622)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:611)
        at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:108)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy35.handleCreateRefreshEvents(Unknown Source)
        at org.hyperic.hq.measurement.server.session.MeasurementEnabler.processEvents(MeasurementEnabler.java:84)
        at org.hyperic.hq.zevents.TimingListenerWrapper.processEvents(TimingListenerWrapper.java:44)
        at org.hyperic.hq.zevents.BufferedListener$BufferedEventRunnable.run(BufferedListener.java:64)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.hyperic.hq.measurement.monitor.LiveMeasurementException: Error contacting resource: Unable to connect to SNMP Agent (snmp:null null,null)
        at org.hyperic.hq.measurement.agent.client.AgentMonitor.getLiveValues(AgentMonitor.java:191)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.getLiveMeasurementValues(MeasurementManagerImpl.java:1612)
        at org.hyperic.hq.measurement.server.session.MeasurementManagerImpl.checkConfiguration(MeasurementManagerImpl.java:1575)
        ... 29 more

Viewing all articles
Browse latest Browse all 52618

Trending Articles