Run Agent Service as normal user¶
This document describes to change the user account used by the openITCOCKPIT Monitoring Agent
Linux¶
First of all you need to stop the openITCOCKPIT Monitoring Agent.
systemctl stop openitcockpit-agent.service
Now edit the Systemd service definition
systemctl edit --full openitcockpit-agent.service
Replace the root
user with a non-privileged user of your choice like monitoring
for example.
Then adjust the permissions on the agent folders and restart the agent
chown -R monitoring: /etc/openitcockpit-agent/
chown -R monitoring: /var/log/openitcockpit-agent/
systemctl start openitcockpit-agent.service
Windows¶
Folder Permissions¶
- Open File Explorer
- Change to
C:\Program Files\
- right click on folder
it-novum
- Go to Properties -> Security -> Advanced
- Change Owner to the user which should run the Agent Services
Perflib Permissions¶
To be able to access Performance Values, you need to add the user which should run the Agent Service into the Group "Performance Monitor Users"
Configuration of Windows Service¶
- Open Windows Services
- right click on the
openITCOCKPIT Agent
service - Go to Properties -> Log On
- Change user to the user which should run the Agent Services
Finally restart the Agent Service