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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content