Ad Widget

Collapse

Running Zabbix agentd as root

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oliverm
    Senior Member
    • May 2006
    • 155

    #1

    Running Zabbix agentd as root

    Is there a way to get the zabbix agentd as root? I need it to run a script which in turn (re)starts some services. However the script is written by another company and this script requires it be run by the root user ONLY and they won't change it for us.

    Can zabbix agentd be run this way ?

    Olly
  • Andreas Bollhalder
    Senior Member
    Zabbix Certified Specialist
    • Apr 2007
    • 144

    #2
    Hello Olly

    Would it be possible to use the sudo command to run the script as root ?

    Andreas
    Zabbix statistics
    Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Alternatively, you may set

      AllowRoot=1

      in ZABBIX agent configuration file. Use at your own risk.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • oliverm
        Senior Member
        • May 2006
        • 155

        #4
        Andreas,

        Alas no. Theres something in the script that prevents SUDO'ing the file. We've had a good play with the sudoers file to try to remove any need for passwords, but the chaps who produce the code say the only way to ensure it runs is to run it as root.

        Olly

        Comment

        • oliverm
          Senior Member
          • May 2006
          • 155

          #5
          Alexei

          Does that switch allow zabbix to run as root, or does it *make* zabbix agent run as root ? If it just allows it, what do i need to change to make it run under the root user account, do you know ?


          Olly

          Comment

          Working...