alias stays static

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nprice
Posts: 3
Joined: Thu May 05, 2011 3:46 pm

alias stays static

Post 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
dsdonut
Posts: 32
Joined: Mon Mar 21, 2011 1:21 pm

Re: alias stays static

Post 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.
dsdonut
Posts: 32
Joined: Mon Mar 21, 2011 1:21 pm

Re: alias stays static

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: alias stays static

Post 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
bushi
Posts: 9
Joined: Wed May 26, 2010 10:36 am

Re: alias stays static

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: alias stays static

Post by mguthrie »

Thanks for the update.
Locked