how to properly change host_name and service_name
Posted: Fri Jun 08, 2012 2:36 pm
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.
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.