Ad Widget

Collapse

moving /tmp/zabbix_server.log to /var/log/zabbix_server.log

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • atno
    Junior Member
    • Jun 2007
    • 6

    #1

    moving /tmp/zabbix_server.log to /var/log/zabbix_server.log

    Hi,

    I installed zabbix 1.4 from source to centos 4.5.
    I edited /et bix/zabbix_server.conf to change the default location of server log to /var/log/zabbix_server.log. I touched the file and chown it for zabbix.zabbix user/group.
    The zabbix server can write to it *but* i get the following error:

    /usr/local/bin/zabbix_server [30162]: Can't rename log file [/var/log/zabbix_server.log] to [/var/log/zabbix_server.log.old] [Permission denied]
    .
    .
    .
    .
    /usr/local/bin/zabbix_server [30162]: Can't rename log file [/var/log/zabbix_server.log] to [/var/log/zabbix_server.log.old] [Permission denied]
    .
    .
    .
    .
    n

    Does anyone have the same problem or a possibly solution?

    Thanks

    atno "The Dude"
  • tronite
    Senior Member
    • Jun 2007
    • 147

    #2
    Greetings,

    Your messege lacks clarity but from what I can gather you might not be logged in with the correct permissions on your box, log in as root then try again.

    Comment

    • Markus
      Member
      • Jan 2006
      • 39

      #3
      On some (all?) Linux/Unix systems /var/log is only writable by the root user. I recommend that you create a subdirectory for your Zabbix logging, e.g. /var/log/zabbix, and make it owned by the zabbix user. As tronite mentioned, you have to do this as the root user. Zabbix itself runs as the zabbix user which is not permitted to create files in /var/log.


      Markus

      Comment

      Working...