how to rename host file without losing its data

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Hanza
Posts: 8
Joined: Fri Dec 25, 2020 5:24 pm

how to rename host file without losing its data

Post 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
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: how to rename host file without losing its data

Post 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.
nadeem.shaikh
Posts: 2
Joined: Mon Feb 05, 2018 6:47 am
Location: India

Re: how to rename host file without losing its data

Post 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
Locked