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
4 | 4 |
*********
|
5 | 5 |
Bug fixes
|
6 | 6 |
*********
|
|
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.
|
7 | 14 |
|
8 | 15 |
=====================
|
9 | 16 |
Centreon Engine 1.8.0
|
0 | 0 |
/*
|
1 | |
** Copyright 2011-2014 Merethis
|
|
1 |
** Copyright 2011-2015,2017 Centreon
|
2 | 2 |
**
|
3 | 3 |
** This file is part of Centreon Engine.
|
4 | 4 |
**
|
|
552 | 552 |
// Need to grab macros?
|
553 | 553 |
if (!macros.x[i]) {
|
554 | 554 |
// 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()) {
|
558 | 558 |
grab_macrox_value_r(
|
559 | 559 |
¯os,
|
560 | 560 |
i,
|