Ad Widget

Collapse

PATCH: database size estimation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Petya
    Member
    • Dec 2007
    • 37

    #1

    PATCH: database size estimation

    Attached patch adds history and trends size estimation
    on the `Configuration - Items` screen.

    Size estimation is displayed for every item in history and trends
    columns respectively (in parenthesis) and totals for all items
    are displayed at the bottom of the screen.

    The patch is quite accurate for MYSQL with InnoDB
    (as accurate as internal InnoDB statistics),
    estimation for all other DB engines might be
    quite inaccurate.
    Attached Files
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Screenshot??
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • Petya
      Member
      • Dec 2007
      • 37

      #3
      screenshot + more accurate patch

      Here's the screenshot plus more accurate patch
      (I forgot to include config.inc.php into previous patch,
      because of that there were no rounding of numbers)
      Attached Files

      Comment

      • just2blue4u
        Senior Member
        • Apr 2006
        • 347

        #4
        I patched my frontend. all looks nice but i have a new column called "item_size".
        In that column no values are shown for the single items (-> screenshot).
        What is that col for? And why is there no data in it?

        Thanks for this patch! hope you can help me!

        Best regards,
        Heiner
        Big ZABBIX is watching you!
        (... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)

        Comment

        • Petya
          Member
          • Dec 2007
          • 37

          #5
          Sorry, that was debugging code. Thanks for bug report.

          I've attached the patch without the debugging code.

          Please restore items.php from backup and apply the new patch
          (or you can edit your existing items.php manually and search
          and replace "item_size" (with quotes) with empty space).

          I'm planning to add "Whole DB estimation size" calculated as a sum
          of estimations of all items history and trends. What screen do you
          suggest for this estimation?
          Attached Files

          Comment

          • xs-
            Senior Member
            Zabbix Certified Specialist
            • Dec 2007
            • 393

            #6
            I'd go for 'Configuration -> General -> Housekeeper'

            Comment

            • just2blue4u
              Senior Member
              • Apr 2006
              • 347

              #7
              i suggest "reports" in main menu...
              Big ZABBIX is watching you!
              (... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)

              Comment

              • Crazy Marty
                Member
                • Sep 2007
                • 75

                #8
                Yes, "Reports" seems to be a good place for this!

                Comment

                Working...