Host alias on retention data file

Michael Friedrich michael.friedrich at univie.ac.at
Fri Jun 17 08:24:56 CEST 2011


Ricardo Maraschini wrote:
> Hello,
>
> I'm facing a little problem here and maybe you could help me clarify my mind.
> Let's suppose i've configured a host called 'linux0' with an 'alias' 'my linux server' and after a few days i resolve to change the alias for the same host for, let's say, 'my linux server 2'.
>
> I've noticed that the macro $HOSTALIAS$ keeps pointing me to the old alias('my linux server') after Nagios restart, disregarding my change.
> I take a look on the source code and i saw that the alias is stored to and restored from retention.dat file when I restart my Nagios daemon, thus overwriting my configuration file changed alias. Is that the desired behaviour?
> When is the macro $HOSTALIAS$ will be set to 'my linux server 2' ?
>
> I saw that we have a configuration variable called retained_host_attribute_mask, and according to documentation, i need to look at includes/common.h to be able to avoid a specific var to be stored at retention.dat.
> But in includes/common.h I only could find defines for status related variables, none related to alias.
>
> I could prevent the overwrite of 'alias' variable editing the source code, more specificaly on xdata/xrddefault.c line 1204, but i think that i'm probably missing something here.
>
> Any thoughts?

this is fixed in svn head. see earlier posts on this list.

> --
> Ricardo José Maraschini
> OpServices Tecnologia da Informação
> Your IT under control
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: 	michael.friedrich at univie.ac.at
phone: 	+43 1 4277 14359
mobile: +43 664 60277 14359
fax: 	+43 1 4277 14338
web:	http://www.univie.ac.at/zid
	http://www.aco.net

Icinga Core&  IDOUtils Developer
http://www.icinga.org


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev




More information about the Developers mailing list