Ad Widget

Collapse

Zabbix Postgres DB growth

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bmoore
    Junior Member
    • Dec 2013
    • 3

    #1

    Zabbix Postgres DB growth

    Hi,

    We're trying to reduce the amount of space being used by our Zabbix implementation with the following configuration:

    Hosts = 16
    Items = 4349
    Triggers = 605
    VPS = 56.63

    Historical data = 30 days

    Our DB currently stands at ~30GB after four months activity.

    Within Postgres I've run the following commands to clear old data:

    ---------------------------

    SELECT pg_size_pretty(pg_database_size('zabbix')) As fulldbsize;

    SELECT pg_size_pretty(pg_total_relation_size('history')) As fulltblsize, pg_size_pretty(pg_relation_size('history')) As justthetblsize;

    truncate table history;

    vacuum analyze;

    ---------------------------

    Looking around the web I haven't been able to find an exact answer. Any help would be much appreciated.

    Thanks in advance.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    historical data=30days.. that include trends??
    Debian-User

    Sorry for my bad english

    Comment

    • bmoore
      Junior Member
      • Dec 2013
      • 3

      #3
      I haven't amended the trend configuration, the plan is that it will either be kept indefinitely or for one year. Either way we've only been using Zabbix for 4 months or so.

      I should add that our Zabbix version is 2.2

      When you change a setting like historical data does Zabbix automatically scrub that data from the DB according to a schedule or process?

      Thanks.

      Comment

      • bmoore
        Junior Member
        • Dec 2013
        • 3

        #4
        Anyone have thoughts on how we should proceed?

        Comment

        Working...