Unable to use JBoss ON rhq-agent-wrapper config command when using su in RHQ_AGENT_START_COMMAND

Solution Unverified - Updated -

Issue

  • agent config fails

    ./rhq-agent-wrapper.sh: line 293: .: /usr/bin/su: cannot execute binary file
    
  • Unable to configure agent

    /bin/su: line 1: ELF: command not found
    

Environment

  • Red Hat JBoss Operations Network (ON) 3.2
  • Attempting to configure the JBoss ON agent using rhq-agent-wrapper.sh config
  • RHQ_AGENT_START_COMMAND environment variable is set to use the su or sudo command

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.