Differences between root and non root installations for Linux agent
The Linux agent can be installed by a root or a non root user.
Feature | Install as root and run as root user | Install as root and run as non root | Install as non root and run as non root |
Docker | Will include all metrics, without any configuration | The site24x7-agent user should be added to the docker group*
| Add the non root user to the docker group* |
Plugins | No configuration required
| Place the plugin files under the plugin directory and execute the following commands: chown -R site24x7-agent:site24x7-group <plugin_folder> or chmod +x <plugin/file>
| No configuration required |
Syslogs | Will include all metrics, without any configuration
| Will include all metrics, without any configuration
| Append the line "*.* @127.0.0.1:8822" to the file /etc/rsyslog.conf and and restart rsyslog using the command: sudo service rsyslog restart**
|
init daemon
| The agent will be registered as a service. During a server reboot, the agent will be automatically started
| The agent will be registered as a service. During a server reboot, the agent will be automatically started.
| The agent will not be registered automatically as a service. It will be added in the startup. During a server reboot, manual login is required.
|
*Note: We make use of the docker UNIX socket file to collect metrics. If the agent runs as non-root, add the non-root user or the site24x7-agent user to the docker group using the following commands:
docker_group=`ls -al /var/run/docker.sock | awk -F ' ' '{print $4}'`
usermod -a -G $docker_group
**This requires root or sudo privileges
Related Help Documentation:
Related Articles
Permission required to run the Linux agent on a machine
A root or a non-root user can install the Linux agent. Related Articles: Know the differences between root and non root installations for Linux agent Add a Linux server monitor
Site24x7 Linux Agent modifications to "/etc/passwd" and "/etc/shadow" files - FIM Events
Scenario You may see the Site24x7 Linux agent modifying files associated with the operating system. Reason The /etc/passwd and /etc/shadow files are critical operating system files that store user account information on a server. The Site24x7 Linux ...
Steps to install Linux monitoring agent in custom platforms/distributions
If you want to install the Site24x7 Server Monitoring agent in platforms/flavors other than Debian, Ubuntu, CentOS, RedHat, Madriva, Fedora, Suse, Amazon Linux, Gentoo, CoreOS, Raspberry Pi (requires Python 3 and above), ARM Processor (requires ...
Configure a proxy for a Linux server monitoring agent during installation
When you install Site24x7's Linux server monitoring agent, use one of the below mentioned commands depending upon your proxy configuration requirements. Scenario 1: Proxy with authentication bash Site24x7InstallScript.sh -i -key=<DEVICE_KEY> ...
Why does the Linux monitoring agent restart during automatic OS updates?
A brief service restart that can trigger agent down or agent restarted alerts and spikes in event noise. Why this happens Automatic updates run on a timer (e.g., apt-daily-upgrade.timer). If the systemd package (or other core libraries) is updated, ...