Hi,
I am using HQAPI 5.0 for quite some time. I have never faced this error as of now. I am trying to get VMStatistics using HQAPI but the Hyperic Server logs show the following errors:
01-05-2013 00:33:58,267 UTC ERROR [RuntimeAIEnabler1] [org.hyperic.hq.autoinventory.agent.client.LegacyAICommandsClientImpl@138] Error sending runtime discover configuration to agent: Unauthorized
org.hyperic.hq.agent.AgentRemoteException: Unauthorized
at org.hyperic.hq.agent.client.AgentConnection.getCommandResult(AgentConnection.java:267)
at org.hyperic.hq.agent.client.AgentConnection.sendCommand(AgentConnection.java:117)
at org.hyperic.hq.autoinventory.agent.client.LegacyAICommandsClientImpl.pushRuntimeDiscoveryConfig(LegacyAICommandsClientImpl.java:132)
at org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerImpl.pushRuntimeDiscoveryConfig(AutoinventoryManagerImpl.java:373)
at org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerImpl.toggleRuntimeScan(AutoinventoryManagerImpl.java:329)
at org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerImpl.handleResourceEvents(AutoinventoryManagerImpl.java:791)
at sun.reflect.GeneratedMethodAccessor735.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy77.handleResourceEvents(Unknown Source)
at org.hyperic.hq.autoinventory.server.session.RuntimeAIEnabler.processEvents(RuntimeAIEnabler.java:70)
at org.hyperic.hq.zevents.TimingListenerWrapper.processEvents(TimingListenerWrapper.java:42)
at org.hyperic.hq.zevents.BufferedListener$BufferedEventRunnable.run(BufferedListener.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
"server.log" 96L, 9448C
It says the agent is unauthorised but I have made no configuration changes on the agent.
Appreciate your help on it.
Regards,
Yashika