-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(engine/configuration): globals.hh removed from configuration files (
#1465) * enh(engine/configuration): config_warnings and config_errors are removed as global variables. * enh(engine/configuration): almost all globals.hh used in configuration are removed * fix(engine/tests): little change in cfg files comments * cleanup(engine/configuration): headers removed when not needed * enh(collect): copyright info are updated automatically now. * fix(engine/configuration): scheduling configuration is fixed. * fix(engine): errors counts were badly propagated. * fix(engine): not needed headers removed * fix(engine): comments removed * fix(engine): fix after review on sched_info_config REFS: MON-34072
- Loading branch information
Showing
155 changed files
with
1,271 additions
and
1,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
/* | ||
** Copyright 2020 Centreon | ||
** | ||
** This file is part of Centreon Engine. | ||
** | ||
** Centreon Engine is free software: you can redistribute it and/or | ||
** modify it under the terms of the GNU General Public License version 2 | ||
** as published by the Free Software Foundation. | ||
** | ||
** Centreon Engine is distributed in the hope that it will be useful, | ||
** but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
** General Public License for more details. | ||
** | ||
** You should have received a copy of the GNU General Public License | ||
** along with Centreon Engine. If not, see | ||
** <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* Copyright 2020-2024 Centreon | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* For more information : [email protected] | ||
* | ||
*/ | ||
#ifndef CCE_ANOMALYDETECTION_HH | ||
#define CCE_ANOMALYDETECTION_HH | ||
|
||
|
@@ -148,7 +147,7 @@ class anomalydetection : public service { | |
void set_status_change(bool status_change); | ||
const std::string& get_metric_name() const; | ||
const std::string& get_thresholds_file() const; | ||
void resolve(int& w, int& e); | ||
void resolve(uint32_t& w, uint32_t& e); | ||
|
||
static const pointer_set& get_anomaly(uint64_t dependent_service_id); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
/** | ||
* Copyright 2020-2024 Centreon | ||
* | ||
* This file is part of Centreon Engine. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* Centreon Engine is free software: you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License version 2 | ||
* as published by the Free Software Foundation. | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Centreon Engine is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* For more information : [email protected] | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Centreon Engine. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef CCE_CONFIGURATION_APPLIER_ANOMALYDETECTION_HH | ||
#define CCE_CONFIGURATION_APPLIER_ANOMALYDETECTION_HH | ||
#include "com/centreon/engine/configuration/applier/state.hh" | ||
|
||
namespace com::centreon::engine { | ||
|
||
|
@@ -43,7 +43,8 @@ class anomalydetection { | |
void modify_object(configuration::anomalydetection const& obj); | ||
void remove_object(configuration::anomalydetection const& obj); | ||
void expand_objects(configuration::state& s); | ||
void resolve_object(configuration::anomalydetection const& obj); | ||
void resolve_object(configuration::anomalydetection const& obj, | ||
error_cnt& err); | ||
}; | ||
} // namespace applier | ||
} // namespace configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
/** | ||
* Copyright 2011-2013,2017,2023-2024 Centreon | ||
* | ||
* This file is part of Centreon Engine. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* Centreon Engine is free software: you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License version 2 | ||
* as published by the Free Software Foundation. | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Centreon Engine is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* For more information : [email protected] | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Centreon Engine. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef CCE_CONFIGURATION_APPLIER_COMMAND_HH | ||
#define CCE_CONFIGURATION_APPLIER_COMMAND_HH | ||
#include "com/centreon/engine/configuration/applier/state.hh" | ||
|
||
namespace com::centreon::engine { | ||
|
||
|
@@ -46,7 +46,7 @@ class command { | |
void expand_objects(configuration::state& s); | ||
void modify_object(configuration::command const& obj); | ||
void remove_object(configuration::command const& obj); | ||
void resolve_object(configuration::command const& obj); | ||
void resolve_object(configuration::command const& obj, error_cnt& err); | ||
}; | ||
} // namespace applier | ||
} // namespace configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
/** | ||
* Copyright 2011-2013,2017,2023 Centreon | ||
* Copyright 2011-2013,2017,2023-2024 Centreon | ||
* | ||
* This file is part of Centreon Engine. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* Centreon Engine is free software: you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License version 2 | ||
* as published by the Free Software Foundation. | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Centreon Engine is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* For more information : [email protected] | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Centreon Engine. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef CCE_CONFIGURATION_APPLIER_CONNECTOR_HH | ||
#define CCE_CONFIGURATION_APPLIER_CONNECTOR_HH | ||
#include "com/centreon/engine/configuration/applier/state.hh" | ||
|
||
namespace com::centreon::engine { | ||
|
||
|
@@ -44,7 +44,7 @@ class connector { | |
void modify_object(const configuration::connector& obj); | ||
void remove_object(configuration::connector const& obj); | ||
void expand_objects(configuration::state& s); | ||
void resolve_object(configuration::connector const& obj); | ||
void resolve_object(configuration::connector const& obj, error_cnt& err); | ||
}; | ||
} // namespace applier | ||
} // namespace configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
/** | ||
* Copyright 2011-2013,2017,2023 Centreon | ||
* Copyright 2011-2013,2017,2023-2024 Centreon | ||
* | ||
* This file is part of Centreon Engine. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* Centreon Engine is free software: you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License version 2 | ||
* as published by the Free Software Foundation. | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Centreon Engine is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* For more information : [email protected] | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Centreon Engine. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef CCE_CONFIGURATION_APPLIER_CONTACT_HH | ||
#define CCE_CONFIGURATION_APPLIER_CONTACT_HH | ||
#include "com/centreon/engine/configuration/applier/state.hh" | ||
|
||
namespace com::centreon::engine { | ||
|
||
|
@@ -46,7 +46,7 @@ class contact { | |
void modify_object(const configuration::contact& obj); | ||
void remove_object(const configuration::contact& obj); | ||
void expand_objects(configuration::state& s); | ||
void resolve_object(const configuration::contact& obj); | ||
void resolve_object(const configuration::contact& obj, error_cnt& err); | ||
}; | ||
} // namespace applier | ||
} // namespace configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
/** | ||
* Copyright 2011-2013,2017,2023 Centreon | ||
* Copyright 2011-2013,2017,2023-2024 Centreon | ||
* | ||
* This file is part of Centreon Engine. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* Centreon Engine is free software: you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License version 2 | ||
* as published by the Free Software Foundation. | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Centreon Engine is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* For more information : [email protected] | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Centreon Engine. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef CCE_CONFIGURATION_APPLIER_CONTACTGROUP_HH | ||
#define CCE_CONFIGURATION_APPLIER_CONTACTGROUP_HH | ||
|
||
#include "com/centreon/engine/configuration/applier/state.hh" | ||
#include "com/centreon/engine/configuration/contactgroup.hh" | ||
|
||
namespace com::centreon::engine { | ||
|
@@ -54,7 +54,7 @@ class contactgroup { | |
void modify_object(configuration::contactgroup const& obj); | ||
void remove_object(configuration::contactgroup const& obj); | ||
void expand_objects(configuration::state& s); | ||
void resolve_object(configuration::contactgroup const& obj); | ||
void resolve_object(configuration::contactgroup const& obj, error_cnt& err); | ||
}; | ||
} // namespace applier | ||
} // namespace configuration | ||
|
Oops, something went wrong.