Ad Widget

Collapse

117 Gbytes in zabbix_server.log

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • voyagerlinux
    Junior Member
    • Jan 2008
    • 3

    #1

    117 Gbytes in zabbix_server.log

    I have a problem with zabbix 1.4.4. I have configured my zabbix server to use MySQL database, but in last days the file zabbix_server.log has become huge.

    The disk space used on zabbix server is at 100% and ssh is unestable and very slow. This problem freezes all my other services.

    Sometimes I have to use the support of my dedicated server provider in order to locate and delete such file and then restart the zabbix server to get remote access.

    I have no idea about problem, somewhere I read something about that if MySQL server have some error or is unavailable, the zabbix server dumps a large amount of data in log files.

    Somebody made a "log monitor" script to detect a "MySQL error" and then restart or stops zabbix to avoid this problem.

    I wouldn't like to "reproduce" this error because this data dump is very fast and I can't read the "tail" of server log without get disconnected.

    Do you have some idea?

    TIA
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    Is the logfile you are talking about from the database or from the zabbix daemon?
    Where is it located on the filesystem?

    Comment

    • laksa
      Junior Member
      • Feb 2007
      • 2

      #3
      zabbix_server.log

      I think you need to uncomment line #LogFileSize=10 in zabbix_server.conf file to allow zabbix_server.log rotated at 10M size or any sizes you want.

      Comment

      • voyagerlinux
        Junior Member
        • Jan 2008
        • 3

        #4
        Huger Zabbix Server LogFile

        Is located in /var/log/zabbix/zabbix_server.log

        and

        LogFileSize=10

        is uncommented

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          Originally posted by voyagerlinux
          Is located in /var/log/zabbix/zabbix_server.log

          and

          LogFileSize=10

          is uncommented
          I don't think it was uncommented before start of ZABBIX server.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • voyagerlinux
            Junior Member
            • Jan 2008
            • 3

            #6
            Originally posted by Alexei
            I don't think it was uncommented before start of ZABBIX server.
            Yesterday it happens again

            Today I made a crontab entry to erase the big file:

            */12 * * * * /bin/rm -f /var/log/zabbix/zabbix_server.log.old

            Comment

            Working...