I installed a server and agent on the same host, then shut down the agent and restarted the server a number of times (I have another agent running on another host). I just tried to restart the agent, but get the following in the agent.log:
2006-08-22 10:57:59,975 WARN [ConfigPopulateThread] Unable to get entities for agent: Unable to invoke 'measurementGetConfigs': Permission denied
2006-08-22 10:57:59,975 WARN [ConfigPopulateThread] Sleeping for 10 seconds to fetch entities
2006-08-22 10:58:01,613 ERROR [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 15 secs before retrying. Error: Unable to invoke 'aiSendReport': Permission denied
2006-08-22 10:58:16,633 ERROR [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 22 secs before retrying. Error: Unable to invoke 'aiSendReport': Permission denied
Needless to say, the server is not discovering any resources from this agent.
I checked all the subdirectories under the hyperic home directory, and all files are owned by hyperic:hyperic. The agent and server are both running as hyperic.
From all appearances, the agent is listening on port 7443 (the TCP port is open, I tried it). When I try to add a platform for the agent running on the same host as the server, the drop-down menu for "Agent Connection" only lets me specify port 2144, which is clearly wrong. I get the following in the server log at that point:
2006-08-22 11:12:36,071 INFO [org.hyperic.hq.autoinventory.server.session.AIScheduleManagerEJBImpl] Scheduling job for immediate execution: JobDetail 'autoinventory.aiScan-10052-1-config-15905173-1156270356071': jobClass: 'org.hyperic.hq.autoinventory.server.session.AIScanJob isStateful: false isVolatile: true isDurable: false requestsRecovers: false
2006-08-22 11:12:36,115 INFO [org.hyperic.hq.autoinventory.agent.client.AICommandsClient] AICommandsClient.startScan for 10.1.0.123:2144
2006-08-22 11:12:36,268 ERROR [org.hyperic.hq.autoinventory.server.session.AIJob] Unable to execute command: Agent error: Unauthorized
2006-08-22 11:12:36,273 ERROR [org.hyperic.hq.autoinventory.server.session.AIScanJob] Agent error: Unauthorized
org.hyperic.hq.autoinventory.AutoinventoryException: Agent error: Unauthorized
at org.hyperic.hq.autoinventory.server.session.AIJob.doAgentScan(AIJob.java:151)
at org.hyperic.hq.autoinventory.server.session.AIScanJob.execute(AIScanJob.java:81)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
The server also can't autodiscover the client, apparently. I get these messages in the server log at regular intervals:
2006-08-22 11:18:20,225 WARN [org.hyperic.hq.bizapp.server.session.LatherDispatcher] Unauthorized agent from 10.1.0.123 denied
I'm a bit at a loss here. Any idea what I'm doing wrong?
Thanks.
David
2006-08-22 10:57:59,975 WARN [ConfigPopulateThread] Unable to get entities for agent: Unable to invoke 'measurementGetConfigs': Permission denied
2006-08-22 10:57:59,975 WARN [ConfigPopulateThread] Sleeping for 10 seconds to fetch entities
2006-08-22 10:58:01,613 ERROR [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 15 secs before retrying. Error: Unable to invoke 'aiSendReport': Permission denied
2006-08-22 10:58:16,633 ERROR [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 22 secs before retrying. Error: Unable to invoke 'aiSendReport': Permission denied
Needless to say, the server is not discovering any resources from this agent.
I checked all the subdirectories under the hyperic home directory, and all files are owned by hyperic:hyperic. The agent and server are both running as hyperic.
From all appearances, the agent is listening on port 7443 (the TCP port is open, I tried it). When I try to add a platform for the agent running on the same host as the server, the drop-down menu for "Agent Connection" only lets me specify port 2144, which is clearly wrong. I get the following in the server log at that point:
2006-08-22 11:12:36,071 INFO [org.hyperic.hq.autoinventory.server.session.AIScheduleManagerEJBImpl] Scheduling job for immediate execution: JobDetail 'autoinventory.aiScan-10052-1-config-15905173-1156270356071': jobClass: 'org.hyperic.hq.autoinventory.server.session.AIScanJob isStateful: false isVolatile: true isDurable: false requestsRecovers: false
2006-08-22 11:12:36,115 INFO [org.hyperic.hq.autoinventory.agent.client.AICommandsClient] AICommandsClient.startScan for 10.1.0.123:2144
2006-08-22 11:12:36,268 ERROR [org.hyperic.hq.autoinventory.server.session.AIJob] Unable to execute command: Agent error: Unauthorized
2006-08-22 11:12:36,273 ERROR [org.hyperic.hq.autoinventory.server.session.AIScanJob] Agent error: Unauthorized
org.hyperic.hq.autoinventory.AutoinventoryException: Agent error: Unauthorized
at org.hyperic.hq.autoinventory.server.session.AIJob.doAgentScan(AIJob.java:151)
at org.hyperic.hq.autoinventory.server.session.AIScanJob.execute(AIScanJob.java:81)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
The server also can't autodiscover the client, apparently. I get these messages in the server log at regular intervals:
2006-08-22 11:18:20,225 WARN [org.hyperic.hq.bizapp.server.session.LatherDispatcher] Unauthorized agent from 10.1.0.123 denied
I'm a bit at a loss here. Any idea what I'm doing wrong?
Thanks.
David