How can I re-install JON agent's security token when it is started as Windows service?
Issue
- When I start an agent on Windows box as a service the following error is thrown:
ERROR [RHQ Agent Registration Thread] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.agent-registration-rejected}The server has rejected the agent registration request. Cause: [org.rhq.core.clientapi.server.core.AgentRegistrationException:The agent [myAgent] is attempting to re-register without a security token. Please consult an administrator to obtain the agent's proper security token and restart the agent with the option "-Drhq.agent.security-token=<the valid security token>"]
- How can I re-install JON agent's security token when it is started as Windows service?
Environment
- Red Hat JBoss Operations Network (ON) 3.2, 3.3
- Windows OS;
- JBoss ON Agent started as a service using
rhq-agent-wrapper.batfile
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.