Ad Widget

Collapse

PATCH: [1.3.6] Change max log file size on the agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Farzad FARID
    Member
    • Apr 2007
    • 79

    #1

    PATCH: [1.3.6] Change max log file size on the agent

    Hi,

    This patch completes the work done to solve the questions asked here: http://www.zabbix.com/forum/showthread.php?t=5844

    It adds the option to change the maximum log file size on the agent side, with the "LogFileSize" item that already works on the server side.

    It has been tested with Zabbix 1.3.6 (r4065).

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

    #2
    Thanks for the patch!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • NOB
      Senior Member
      Zabbix Certified Specialist
      • Mar 2007
      • 469

      #3
      OK.

      But the limit of 1024 (kBytes ?) is not a good idea.

      If I enhance it to, say, 51200 (= 50 MB ?), then the log file
      is rotated immediately.
      I didn't check whether an unsigned (16-bit) int is used or not.

      Is the limit really in kByte ?

      Norbert.

      Comment

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

        #4
        The limit is given in MB. Set to 50 for 50 MB.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • NOB
          Senior Member
          Zabbix Certified Specialist
          • Mar 2007
          • 469

          #5
          Thanks for the very quck reply.

          Now it works.

          Norbert.

          Comment

          Working...