Page 1 of 1
Renaming host & historical data
Posted: Wed Nov 11, 2015 5:26 am
by amprantino
Is it possible to rename a host or service without loosing the historical data ?
Re: Renaming host & historical data
Posted: Wed Nov 11, 2015 11:21 am
by scottwilkerson
Not in Nagios Core. In Nagios XI this is mostly possible using the rename utility, however even then the availability report will not be fully correct unless you were to replace all of the host/service entries in the nagios.log and all of the log files in the archive directory.
Re: Renaming host & historical data
Posted: Wed Nov 11, 2015 11:30 am
by amprantino
So:
- I rename the host
- the same time I use sed to replace the old name with the new one (nagios.log & archive directory)
Any other info saved somewhere?
Re: Renaming host & historical data
Posted: Wed Nov 11, 2015 12:06 pm
by jdalrymple
amprantino wrote:So:
- I rename the host
- the same time I use sed to replace the old name with the new one (nagios.log & archive directory)
This is where Core gets all of it's historical data unless you're talking perfdata which is a whole other debacle. I've never done it, but I expect what you're trying to achieve would yield favorable results, maybe.