Page 1 of 1

alias stays static

Posted: Sun May 15, 2011 7:11 am
by nprice
I have a host and I changed its alias

Now when i get notifaction emails it stays as the old one.

Can anyone tell me why and how to solve this

Re: alias stays static

Posted: Wed May 18, 2011 10:14 am
by dsdonut
Where do you even set the alias? I added a host by copying an existing one then changing, the name, description, address, etc. However it still has the alias of the host that I copied it from. I can't find where the alias is even set.

This is very confusing, as each alert generated by that host gets sent with the wrong name in the message.

Re: alias stays static

Posted: Wed May 18, 2011 10:15 am
by dsdonut
OK, just read the description of the "Description" field and found out that is the alias.

I'm having the same issue as the original poster. I've changed the alias, yet that change isn't reflected in alerts.

Re: alias stays static

Posted: Fri May 20, 2011 2:17 pm
by mguthrie
Have you specified the host alias macro in your notification handler? If that hasn't changed then you'll still get notifications with the host_name directive.
http://nagios.sourceforge.net/docs/3_0/ ... ml#command
http://nagios.sourceforge.net/docs/3_0/macrolist.html

Re: alias stays static

Posted: Mon May 30, 2011 4:10 am
by bushi
There is atm a bug in nagios and various threads according to this topic, e.g. see: http://support.nagios.com/forum/viewtop ... f=7&t=1666

You have to shut down nagios, delete retention.dat and restart nagios.

Re: alias stays static

Posted: Wed Jun 01, 2011 3:37 pm
by mguthrie
Thanks for the update.