Ad Widget

Collapse

Progressive increase in zabbix server disk usage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jornell
    Junior Member
    • Feb 2023
    • 18

    #1

    Progressive increase in zabbix server disk usage

    Hello,

    Two weeks ago I made some changes from the frontend of the zabbix server, basically I modified some housekeeping, reducing the time interval in which it saves the history, since then the space usage has been increasing due to the database that zabbix uses in my case MariaDB.

    S.O: Ubuntu 20
    Zabbix Server: 6.0.18
    Database: MariaDB
    Host: 500 aprox

    ​​

    Click image for larger version

Name:	imagen.png
Views:	593
Size:	30.0 KB
ID:	465144


    - Table Sizes 30/05

    ​​

    - Table sizes 29/05

    Tables | Size in MB |
    +----------------------------+------------+
    | history_uint | 79671.08 |
    | history | 30550.05 |
    | history_text | 23962.31 |
    | trends_uint | 14961.23 |
    | trends | 5642.38 |
    | auditlog | 459.05 |
    | events | 258.48 |


    As a temporary measure I had to delete some files that I had on the server, that is why there are considerable drops in the graph, however the progressive increase continues and in a few more days the server is full, since it is increasing 8GB per day


    if anyone can help me i would be very grateful.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    You don't have "override" in history and trends, so basically, whatever is set in item config, that stays. This really does not remove things based on time but based on when they really expire.
    By setting overrides you can be sure, that you have X days of history and Y days of trends... This way, if you have an environment that does not grow rapidly, your DB should stay in pretty stable size.

    Comment

    • jornell
      Junior Member
      • Feb 2023
      • 18

      #3
      Hello,

      at the beginning it was without "Override", I modified it by placing dates up to 180 and then the progressive increase began, I'm not sure if it was because of that but because of the dates it fits with time, so to test I put it as it was to see if it would stop this progressive increase in space, yesterday I again placed dates even lower than 90 days but the increase continues today.

      Click image for larger version

Name:	imagen.png
Views:	510
Size:	30.7 KB
ID:	465203

      Click image for larger version

Name:	imagen.png
Views:	511
Size:	30.2 KB
ID:	465204

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        I think it will not delete everything at once. Housekeeper has its limits...

        Comment

        Working...