Page 1 of 1

how to properly change host_name and service_name

Posted: Fri Jun 08, 2012 2:36 pm
by aserv
Hello,
I have a need (and as I researched this, it turns out to be cumbersome) to rename our hosts and services as part of an effort to clean up our nagios environment (2011R1.7). However, not all historical data/information is coming across after the name change.

For example: I changed a host from ServerA to ServerB and applied the new config (via the core config manager). As a result the Host Notifications, Host History, Host Availability, Host Performance, and Host Overview screens all show ServerB as if it was a new server.

I've done some digging and have been able to correct the Host Performance graphs to show historical data by moving the rrd files within /user/local/nagios/share/perfdata. http://support.nagios.com/forum/viewtop ... ame#p27114

I've also read about how I should update the log files in /usr/local/nagios/var/nagios.log and /usr/local/nagios/var/archives/*.log but this doesn't appear to affect these screens. http://www.skylercall.com/2011/08/resto ... in-nagios/

I did find a bug report http://tracker.nagios.org/view.php?id=66 but I'm not clear about what this would impact.

My question is: how SHOULD I change the host_name and service_name within Nagios so that all historical data/trending/etc can be visible/maintained and so my configuration doesn't break or stop monitoring an aspect of my environment.

Any guidance is appreciated!

EDIT: I should mention. I changing the host_name back to the previous name. All data shows back up except for results while using the new host_name.

Re: how to properly change host_name and service_name

Posted: Fri Jun 08, 2012 3:08 pm
by lmiltchev
I sent you a PM.

Re: how to properly change host_name and service_name

Posted: Tue Jun 19, 2012 9:28 pm
by ytlcomm
Would be helpful if you can share with us how to do it rather than sending a PM

Re: how to properly change host_name and service_name

Posted: Wed Jun 20, 2012 9:30 am
by lmiltchev
The reason I sent a PM is that this component is still in development and it is not available for download for everybody. It is a BETA, so it is not production-ready. We provide it to customers who are interested in testing it. You can read more about it here:

http://labs.nagios.com/2012/04/13/nagio ... full-beta/