Ad Widget

Collapse

Chef install of zabbix agent, permissions denied

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Predatorian
    Junior Member
    • Apr 2013
    • 12

    #1

    Chef install of zabbix agent, permissions denied

    Hello all,

    I am running Chef and installing Zabbix Agent that way. The .rpm files copied over, and I was able to run the agent manually, but when I ran chef, and started the service that way, I now receive

    Code:
    zabbix_agentd [8008]: cannot open [/etc/zabbix/zabbix_agentd.conf]: [13] Permission denied
    ...when I run it manually. Is there something else I need to do?

    /etc/zabbix/ directory:
    Code:
    drwxr-xr-x  3 root root    4096 May  2 13:10 zabbix
    Configuration File:
    Code:
    -rw-r--r-- 1 root root  587 May  3 09:41 zabbix_agentd.conf
    drwxr-xr-x 2 root root 4096 May  2 13:10 zabbix_agentd.d
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Your files and "zabbix" directory are owned by root. I always have "zabbix" user own them.

    I don't know what "chef" is, but if that is a user-type account and you are trying to launch the files through that.., then I assume that "chef" should own them.

    Comment

    • Predatorian
      Junior Member
      • Apr 2013
      • 12

      #3
      Chef is an infastructure management program from Opscode. Its free.

      But I found out what was wrong with my zabbix permissions, I had the log file writing to the conf file, and thus, I changed the log file location, and now it works. Thank you guys.

      Comment

      • Predatorian
        Junior Member
        • Apr 2013
        • 12

        #4
        AAAAAANNNNNNDDDD, when installing the zabbix agent from the RPMs, I have to change the permissions on the zabbix_agentd.conf file in /etc/zabbix/zabbix_agentd.conf from 644 to 777. Otherwise, it wont read the file.

        Comment

        Working...