Re: [Nagios-devel] Host alias on retention data file

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
Guest

Re: [Nagios-devel] Host alias on retention data file

Post by Guest »

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
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>


--
DI (FH) Michael Friedrich

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

email: [email protected]
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






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked