Out of Date Host Alias and Display Name
Posted: Mon Aug 27, 2012 12:37 pm
Hi There,
I have a bunch of hosts that I make periodic bulk modifications to their host parameters. We have alternating production/staging environments. So when staging gets elevated to production and production is demoted to staging, I accommodate in Nagios by flipping IPs between prd/stg. All staging IPs get assigned to production hosts and visa versa.
In addition to the IP change, I have the host description and alias modified to list the 'true' host name of the server, not the hostname that Nagios tracks it by. However, I've noticed that for some hosts, the emails do not always contain the new, accurate alias. If I look the host up in the NagiosXI CCM, they have the correct alias. If I look the host up in Nagiosql it also has the correct alias. If I look at the host file produced in /usr/local/nagios/etc/hosts/ it contains the proper alias. However, emails still come through with the wrong alias. The retention.dat file holds the wrong/old alias and display_name (description). I haven't removed this file completely, but I have tried deleting the individual alias and display_name entries and the full host block, but it gets regenerated with the old data. The backend API also reports the old alias when I check it.
This isn't happening with all hosts that are rotated in this manner, only about 30% or so. What's holding the bad/old alias entry and how do I get it updated?
Thanks,
Bryant
I have a bunch of hosts that I make periodic bulk modifications to their host parameters. We have alternating production/staging environments. So when staging gets elevated to production and production is demoted to staging, I accommodate in Nagios by flipping IPs between prd/stg. All staging IPs get assigned to production hosts and visa versa.
In addition to the IP change, I have the host description and alias modified to list the 'true' host name of the server, not the hostname that Nagios tracks it by. However, I've noticed that for some hosts, the emails do not always contain the new, accurate alias. If I look the host up in the NagiosXI CCM, they have the correct alias. If I look the host up in Nagiosql it also has the correct alias. If I look at the host file produced in /usr/local/nagios/etc/hosts/ it contains the proper alias. However, emails still come through with the wrong alias. The retention.dat file holds the wrong/old alias and display_name (description). I haven't removed this file completely, but I have tried deleting the individual alias and display_name entries and the full host block, but it gets regenerated with the old data. The backend API also reports the old alias when I check it.
This isn't happening with all hosts that are rotated in this manner, only about 30% or so. What's holding the bad/old alias entry and how do I get it updated?
Thanks,
Bryant