Run the Monitoring Agent as the root User

By default, agent360 runs under its own user agent360. This prevents the monitoring agent from having access to certain data, such as process-level disk I/O.

This document explains how to run agent360 as the root user to unlock these statistics.

๐Ÿ“˜

If the /etc/systemd/system/agent360.service file exists, your services run from systemd and you should use the systemd method. Otherwise, use the init.d method.

Systemd

To run agent360 as the root user with the systemd service, perform the following steps:

  1. Open the /etc/systemd/system/agent360.service file with your preferred editor and change the line with User=agent360 to User=root
  2. Run the systemctl daemon-reload command to reload the file change.

Init.d

To run agent360 as the root user with init.d, perform the following steps:

  1. Open the /etc/init.d/agent360 file and change the line proguser=agent360 to proguser=root.

  2. If that line does not exist in the file, replace the following line:

    start-stop-daemon --start --quiet --name $NAME --oknodo --pidfile $PIDFILE --chuid agent360 --background --make-pidfile --startas $DAEMON

with this line:

start-stop-daemon --start --quiet --name $NAME --oknodo --pidfile $PIDFILE --chuid root --background --make-pidfile --startas $DAEMON 

OpenBSD

To run agent360 as the root user on OpenBSD systems, perform the following steps:

  1. Open the /etc/rc.d/agent360 file and change the line with : ${agent360_run_user="agent360"} to : ${agent360_run_user="root"}
  2. After making these changes, run the service agent360 restart command.
  3. To confirm if the agent is running as the root user, run the ps aux | grep agent360 command. It should give results similar to the following:
root 1324 0.2 1.6 564592 16832 ? Ssl May16 293:31 /usr/bin/python /usr/local/bin/agent360