Ad Widget

Collapse

How to purge collected data in zabbix 2.0+

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • connetport
    Junior Member
    • May 2013
    • 1

    #1

    How to purge collected data in zabbix 2.0+

    Hi,

    I have Zabbix 2.0.4 and I want to delete all collected data (but not the configuration).

    How can I achieve this ?

    Best regards.
    Last edited by connetport; 09-05-2013, 14:45.
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    You should delete data from "history*" and "trends*" tables. Also, you can clean up "alerts", "events", "auditlog" and a few other tables, but I'm not ready to give a complete list.

    You can use statement:
    DELETE FROM table_name;
    or
    TRUNCATE TABLE table_name;

    Please make sure that you have a backup of the database, before deleting data.

    Comment

    Working...