Ad Widget

Collapse

How to get history back for renamed server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • darko11z
    Junior Member
    • Jun 2022
    • 18

    #1

    How to get history back for renamed server?

    Our server name is "server1.example.com" and in Zabbix I created graphs of data for this server and everything looks great.

    I would like to rename hostname to "server2.example.com". From this point further data in Zabbix are collected as new "server2.example.com". I would like to merge previous "server1.example.com" data with "server2.example.com" data, so to get history for this server back, after all this is single server, just hostname will be changed. How to get history data back?

    EDIT:
    Inside "zabbix" database I have searched for tables with content of "server1.example.com" hostname with commands:

    select autoreg_hostid, host, listen_dns from zabbix.autoreg_host where host = 'server1.example.com' ;
    select hostid, name, os from zabbix.host_inventory where name = 'server1.example.com';
    select hostid, host, name, name_upper from zabbix.hosts where host = 'server1.example.com'


    and found the following:

    Click image for larger version  Name:	image.png Views:	1 Size:	104.7 KB ID:	500652
    QUESTIONS:
    1. Is it safe (if no other better method) to manually update fields with "server1.example.com" to "server2.example.com" directly in "zabbix" database?
    2. Are there any other tables with this info that I have overlooked?

    Regards
    Last edited by darko11z; 17-03-2025, 11:39.
Working...