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:

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
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:
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