Ad Widget

Collapse

History and trends data gone after import

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lbjensen
    Junior Member
    Zabbix Certified Specialist
    • Apr 2013
    • 16

    #1

    History and trends data gone after import

    Hi

    I have just partitioned my history and trends tables, and because there are very large, I have
    Stopped the zabbix server
    renamed the tables in mysql
    create the history and trends tables with partitions
    started zabbix server again
    Exported the data from history and trends tables with mysqldump
    imported the data to the history and trends tables with mysql -uzabbix -p zabbixdb < history.sql

    The partitions are working and the data is imported again, but I cannot see the data in the graphs for any items now
    Click image for larger version

Name:	example.png
Views:	278
Size:	8.4 KB
ID:	380741

    Do I have to do anything to get the data view able again in Zabbix?

    Cheers
    Lars
    Denmark
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hi Lars,

    Do you have the data in the tables if doing a direct SQL query? What is the oldest timestamp you get?


    Code:
     
     [FONT=arial]SELECT FROM_UNIXTIME(MIN(clock)) FROM `history_uint`;[/FONT]
    You mentioned renaming of tables. Any chance you have now some tables with incorrect names?

    Comment

    Working...