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.servicefile exists, your services run fromsystemdand you should use thesystemdmethod. Otherwise, use theinit.dmethod.
Systemd
To run agent360 as the root user with the systemd service, perform the following steps:
- Open the
/etc/systemd/system/agent360.servicefile with your preferred editor and change the line withUser=agent360toUser=root - Run the
systemctl daemon-reloadcommand to reload the file change.
Init.d
To run agent360 as the root user with init.d, perform the following steps:
-
Open the
/etc/init.d/agent360file and change the lineproguser=agent360toproguser=root. -
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:
- Open the
/etc/rc.d/agent360file and change the line with: ${agent360_run_user="agent360"} to : ${agent360_run_user="root"} - After making these changes, run the
service agent360 restartcommand. - To confirm if the agent is running as the
rootuser, run theps aux | grep agent360command. 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/agent360Updated about 2 months ago