Page 1 of 1

how to rename host file without losing its data

Posted: Thu Dec 16, 2021 5:22 pm
by Hanza
Hi!!

I need to rename a host file without losing its historical data, obviously that nagios see the rename as a new file and it remove all the historical data about the old one.

Can you please help me ? it's really a sensitive situation

Re: how to rename host file without losing its data

Posted: Fri Dec 17, 2021 11:51 am
by gormank
Have you tried renaming the hostname dir under perfdata?
locate perfdata
locate <name of host to be renamed>
I'm not sure if the .rrd or .xml files contain the hostname, so that might be worth looking into.

Re: how to rename host file without losing its data

Posted: Wed Dec 29, 2021 2:20 pm
by nadeem.shaikh
Hi Hanza,

It seems you would like to rename hostname of any device.

You can use "Bulk Renaming Tool" option in NagiosXI >>> Core Config Manager >>> Tools