Codebase list centreon-engine / 9750523
fix(macros): generate environment macros when using large installation tweaks. Unlike was the documentation told, environment macros were not properly generated and remained empty. This is now fixed and only summary macros are not generated when using large installation tweaks (as per documentation). Matthieu Kermagoret authored 6 years ago Matthieu Kermagoret committed 6 years ago
2 changed file(s) with 11 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
44 *********
55 Bug fixes
66 *********
7
8 Generate environment macros when using large installation tweaks
9 ================================================================
10
11 Environment macros were not generated when using large installation
12 tweaks, in contradiction with the documentation. Only summary macros
13 are not generated now.
714
815 =====================
916 Centreon Engine 1.8.0
00 /*
1 ** Copyright 2011-2014 Merethis
1 ** Copyright 2011-2015,2017 Centreon
22 **
33 ** This file is part of Centreon Engine.
44 **
552552 // Need to grab macros?
553553 if (!macros.x[i]) {
554554 // Skip summary macro in lage instalation tweaks.
555 if ((i < MACRO_TOTALHOSTSUP
556 || i > MACRO_TOTALSERVICEPROBLEMSUNHANDLED)
557 && !config->use_large_installation_tweaks()) {
555 if ((i < MACRO_TOTALHOSTSUP)
556 || (i > MACRO_TOTALSERVICEPROBLEMSUNHANDLED)
557 || !config->use_large_installation_tweaks()) {
558558 grab_macrox_value_r(
559559 &macros,
560560 i,