Ad Widget

Collapse

Zabbix-agent is refusing to run

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nizen
    Junior Member
    • Jun 2015
    • 2

    #1

    Zabbix-agent is refusing to run

    Hello!

    I am at a loss as to why zabbix-agent refuses to run. I do service zabbix-agent start or /etc/init.d/zabbix-agent start, and it says okay, but then when I check the service status or pas aux, it is not running:

    Zabbix agent v2.2.9 on Ubuntu 14.04

    * zabbix_agentd starting... [ OK ]
    root@hydra-web-03:/var/log# service zabbix-agent status
    * zabbix_agentd is not running

    /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
    zabbix_agentd [18130]: cannot open [/var/log/zabbix-agent/zabbix_agentd.log]: [13] Permission denied

    File: ‘/var/log/zabbix-agent/’
    Size: 4096 Blocks: 8 IO Block: 4096 directory
    Device: ca01h/51713d Inode: 918653 Links: 2
    Access: (0755/drwxr-xr-x) Uid: ( 107/ zabbix) Gid: ( 113/ zabbix)

    So, obviously, even if I change the logging to debug, I'm getting no information.

    I've been working on this all day, so I'm sure I'm missing some useful information on this original post. I can answer any questions. however.

    Thanks in advance for any help!
  • RaidJan
    Junior Member
    • May 2014
    • 5

    #2
    It sound like zabbix doesn't have the correct permissions to write his log :

    zabbix_agentd [18130]: cannot open [/var/log/zabbix-agent/zabbix_agentd.log]: [13] Permission denied

    You need to change permission of this folder according to the user you're using. Zabbix cannot run without logging file I think.

    Comment

    • Nizen
      Junior Member
      • Jun 2015
      • 2

      #3
      Thanks for the response!

      I have changed the perms on the /var/log/zabbix-agent directory, as well as tried adding zabbix to the syslog group. No-go. I took an strace of zabbix_agentd and this is what I got:

      http://pastebin.com/8idWxVNE

      Comment

      • RaidJan
        Junior Member
        • May 2014
        • 5

        #4
        Honestly I don't really understand all theses informations, can you give agent conf and agent log data?


        I'm using also Ubuntu LTS 14.04 and I have various agent version who are running well.

        Comment

        Working...