Install > Configuring non-root Agent User

Configuring non-root Agent User

Perform the following steps on the node and server to start monitoring as a non-root user. Make sure Docker is installed as a root user.

  1. Create a Operating System user hpovusr. For example, # useradd hpovusr
  2. Create a Operating System group hpovgrp. For example, # groupadd hpovgrp.
  3. Add the hposusr user to both Docker and hpovgrp groups.
  4. Install Operations Agent 12.01 or later.
  5. Create NPU_profile.txt with the following content:

    set eaagt:MODE=NPU
    set eaagt:SNMP_TRAP_PORT=1162
    set eaagt:OPC_RPC_ONLY=TRUE
    set bbc.cb:SERVER_PORT=60060
    set ctrl.sudo:OV_SUDO_USER=hpovusr
    set ctrl.sudo:OV_SUDO_GROUP=hpovgrp
    set eaagt.license:ALL=PERMANENT
  6. On the server, set the port for the agent:

    # ovconfchg -edit
    [bbc.cb.ports]
    PORTS=hostname:port;hostname:port;hostname:port

    Note In case of Distributed OMi, update the port on both DPS and GW Servers.

  7. Remove the certificate from both node and server as an Agent root user.

    • If Operations Agent is installed as root user, run the following command:

      # ./oainstall.sh -c -a -agent_profile /tmp/nonroot_profile.txt -srv <Server> -cert_srv <Server> -f [-npu_password <pwd>]
    • If Operations Agent is installed as non-root user, run the following command:

      # ./oainstall.sh|.vbs -i -a -agent_profile <NPU_profile.txt> -srv <Server> -cert_srv <Server> -f [-npu_password <pwd>]
  8. Start Agent as a non-root user if the Agent is not started.