Ad Widget

Collapse

Several mistakes in documentattion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sire
    Senior Member
    • Jul 2010
    • 210

    #1

    Several mistakes in documentattion

    Hi Zabbix team and users,
    I have noticed several mistakes in Zabbix 1.8 manual section 7.3 Remote commands.

    1. The remote command to execute Apache should be "host:sudo /etc/init.d/apache restart". Without "sudo" Zabbix agent would fail to start Apache service, as this operation requires root privileges, while Zabbix agent runs as an unprivileged user.

    2. The line in /etc/sudoers should be "zabbix ALL=(ALL) NOPASSWD: /etc/init.d/apache restart". Note the "NOPASSWD" keyword, without it sudo would have asked password, and the remote command would fail to execute.

    3. The "requiretty" option should be disabled in /etc/sudoers, i.e. put "#" sign in the beginning of "Defaults requiretty" line. Otherwise remote sudo would fail complaining on the lack of a tty.

    P.S. Tested in RHEL/CentOS 5.
    Last edited by sire; 26-07-2010, 10:27.
    Regards,
    Sergey Syreskin

    Monitored hosts: 2646 / Active items: 23604 / Server performance: 765.74

    Temporary out of Zabbix business
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    thanks for the feedback. updated documentation accordingly
    Zabbix 3.0 Network Monitoring book

    Comment

    • sire
      Senior Member
      • Jul 2010
      • 210

      #3
      Originally posted by richlv
      thanks for the feedback. updated documentation accordingly
      NOPASSWD is still missing in zabbix ALL=(ALL) /etc/init.d/apache restart. Please recheck.
      Regards,
      Sergey Syreskin

      Monitored hosts: 2646 / Active items: 23604 / Server performance: 765.74

      Temporary out of Zabbix business

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        ahh, duh - missed that one. should be ok now
        Zabbix 3.0 Network Monitoring book

        Comment

        Working...