Page 1 of 1

Nagios Core 4.3.2 xdata/xodtemplate.c bug

Posted: Thu May 11, 2017 8:44 pm
by asylum71
Upgadeded nagios 4.3.2 tonight and did the normal config check, got the following:

WARNING: The normal_retry_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.

Couldn't find a reference to normal_retry_interval in any of my object config files.

From the script (xdata/xodtemplate.c) looks like it's got a typo in the error message?

else if(!strcmp(variable, "retry_interval") || !strcmp(variable, "retry_check_interval")) {
if(!strcmp(variable, "retry_check_interval"))
logit(NSLOG_CONFIG_WARNING, TRUE, "WARNING: The normal_retry_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.\n");
temp_host->retry_interval = strtod(value, NULL);
temp_host->have_retry_interval = TRUE;

I did find retry_check_interval in a couple of my object config files, changed to retry_interval and the script completes clean.

All looks to be working well so pretty sure I got that right. Hopefully this helps someone else. Thanks!

Re: Nagios Core 4.3.2 xdata/xodtemplate.c bug

Posted: Fri May 12, 2017 8:57 am
by dwhitfield
Looks like this bug got reported on github: https://github.com/NagiosEnterprises/na ... issues/368

Thanks for sharing the fix! Is it ok if we go ahead and lock this up?

Re: Nagios Core 4.3.2 xdata/xodtemplate.c bug

Posted: Tue May 23, 2017 3:53 pm
by asylum71
Absolutely. Thanks!