"alias" host configuration not interpreted since 3.2.2

Michael Friedrich michael.friedrich at univie.ac.at
Wed Apr 13 20:30:19 CEST 2011


On 13.04.2011 18:58, Mark D. Nagel wrote:
> On 3/14/2011 7:50 AM, Dennis Kuhlmeier wrote:
>> just noticed that I couldn't change the alias value in an existing
>> host definition.
>>
>> $HOSTALIAS$ just remained on the old value although the web
>> interface showed the current setting.
>>
>> I built myself a little test setup and just returned $HOSTALIAS$ as
>> a check-result and could confirm that in Nagios Core 3.2.1
>> $HOSTALIAS$ changed without error when changing the alias
>> definition, since version 3.2.2 change is impossible.
>>
>> Thanks for a fix in an upcoming version.
>
> We have just diagnosed this problem as well.  It seems to be due to this
> "fix" released with 3.2.2:
>
> * Fix for retaining host display name and alias, as well as service
> display name (Folkert van Heusden)
>
> Sadly, the additional retained attributes have no corresponding mask
> bits to use in the retained_host_attribute_mask setting, and there is no
> justification provided for incorporating this change, just that one
> line.  No UI I've seen lets you change these values (though one could
> exist I'm sure). The result is, whatever value those fields had are kept
> forever in the retention file regardless of what you change them to in
> the actual configuration.  The only solution I can see is to stop
> Nagios, edit the retention file and start Nagios.  There may be a string
> you can send to the command pipe to change those (one would hope that is
> the case), but I agree with you -- this "fix" needs to be pulled from
> the code.

I recently removed that "feature" from icinga core, and then also built 
an on demand patch against current 3.2.3 git tree for an omd user. since 
it's unclear to me if the nagios devs would keep that as feature or not, 
feel free to use the attached git patch yourself.

kind regards,
michael

-- 
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
fax: 	+43 1 4277 14338
web:	http://www.univie.ac.at/zid
	http://www.aco.net

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


>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-do-not-retain-display_name-and-host-alias.patch
Type: text/x-diff
Size: 2668 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110413/fd622457/attachment.patch>
-------------- next part --------------
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list