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 fromsystemd
and you should use thesystemd
method. Otherwise, use theinit.d
method.
Systemd
To run agent360
as the root
user with the systemd
service, perform the following steps:
- Open the
/etc/systemd/system/agent360.service
file with your preferred editor and change the line withUser=agent360
toUser=root
- 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:
-
Open the
/etc/init.d/agent360
file and change the lineproguser=agent360
toproguser=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/agent360
file and change the line with: ${agent360_run_user="agent360"} to : ${agent360_run_user="root"}
- After making these changes, run the
service agent360 restart
command. - To confirm if the agent is running as the
root
user, run theps 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
Updated over 2 years ago