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.
how to properly change host_name and service_name
-
- Posts: 1
- Joined: Wed Jun 06, 2012 1:40 pm
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: how to properly change host_name and service_name
I sent you a PM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 62
- Joined: Tue May 22, 2012 8:52 pm
Re: how to properly change host_name and service_name
Would be helpful if you can share with us how to do it rather than sending a PM
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: how to properly change host_name and service_name
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/
http://labs.nagios.com/2012/04/13/nagio ... full-beta/
Be sure to check out our Knowledgebase for helpful articles and solutions!