Ad Widget

Collapse

Need help running Zabbix Agent 2 as a different user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StefanK
    Junior Member
    • Jan 2023
    • 22

    #1

    Need help running Zabbix Agent 2 as a different user

    Hi All

    I have tried to setup the zabbix agent to run as the progress user on our environments as shown in https://www.zabbix.com/documentation..._agent_as_root and have given the relevant folders progressrogress permissions.
    I am running into an issue where if the server is restarted the folder containing the agent.sock and agent.pid files as well as the new logfiles that are rotated in are having their permissions automatically set back to zabbix:zabbix or some other user:group.
    Is there a way to prevent this and how can it be done
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Easier would be running it as user service .. https://www.unixsysadmin.com/systemd-user-services/
    your own directory tree for logs/sockets/pidfiles, little mods to service file etc...

    Comment

    Working...