Ad Widget

Collapse

How to execute Agent2 Zabbix as root

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ocarlossouza
    Junior Member
    • Feb 2024
    • 22

    #1

    How to execute Agent2 Zabbix as root

    I need to run my agent with root privileges to read restricted files, on some servers where I have RHEL7 or higher installed I can run it perfectly through systemctl - However, on older systems where systemctl does not exist I have not yet found how to resolve this situation .

    Here is the link I used for the procedure:
    Attached Files
  • ocarlossouza
    Junior Member
    • Feb 2024
    • 22

    #2
    Solved
    edit: /etc/init.d/zabbix-agent
    old: daemon $exec -c $conf
    new: daemon --user=root $exec -c $conf

    necessary restart the service after

    Comment

    Working...