Ad Widget

Collapse

Zabbix agent (active) log[/var/log/kern.log,"Out of memory"]: Permission denied

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sergey371
    Junior Member
    • Apr 2016
    • 6

    #1

    Zabbix agent (active) log[/var/log/kern.log,"Out of memory"]: Permission denied

    Add Zabbix agent (active) to Template check: log[/var/log/kern.log,"Out of memory"]
    In Configuration->Host->Items see for this key:
    Code:
    Cannot open file "/var/log/kern.log": [13] Permission denied
    For some hosts with the same Template all right.
    If the cloned key from a template in the local configuration also works.

    On problem host:
    Code:
    $ id zabbix
    uid=114(zabbix) gid=124(zabbix) groups=124(zabbix),4(adm)
    $ ls -l /var/log/kern.log
    -rw-r----- 1 syslog adm 731954 апр.  19 12:57 /var/log/kern.log
    
    # su -s /bin/bash - zabbix
    zabbix@xxx:~$ wc -l /var/log/kern.log
    6827 /var/log/kern.log
    Restart the agent, proxy and server has already done.

    What to do? How to fix?

    Sever: Zabbix 2.4.7 on Ubuntu 14.04.3 LTS
    Proxy, Agents: Zabbix 2.4.7 on Ubuntu 12.04.5 LTS
  • pzabortsev
    Senior Member
    • Dec 2012
    • 338

    #2
    The same problem is with /var/log/syslog file on Ubuntu 14.04.4 LTS

    But on Ubuntu 12.04.5 LTS /var/log/syslog file monitoring works fine

    Have anybody a solution?
    Last edited by pzabortsev; 10-05-2016, 09:48.

    Comment

    • Sergey371
      Junior Member
      • Apr 2016
      • 6

      #3
      Workaround:
      From host configuration -> Templates -> Unlink and clear for template witch the problematic Item -> Update
      Then add this template(with the problematic Item) again and Update.

      Comment

      Working...