Ad Widget

Collapse

Running commands as Root user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sworded
    Junior Member
    • Feb 2013
    • 8

    #1

    Running commands as Root user

    I would like an Item to run commands as the root user

    Item:
    system.run[cat /var/log/messages]

    Right now, commands are being ran as the zabbix user and I get permission denied a lot. Is it possible for system.run to run as root?
    Last edited by sworded; 04-03-2013, 17:44.
  • neilb
    Member
    • Jan 2013
    • 33

    #2
    you have a choice i believe of running the agent as either zabbix or root. by default it's user zabbix, or turn on the parameter "Allowroot"


    the alternative is to add the command to /etc/sudoers and sudo accordingly either with userparameters or within a local (to the agent) shell script.

    N.

    Comment

    Working...