-
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.
- Loading branch information
1 parent
922825b
commit b6583ee
Showing
10 changed files
with
61 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# Centreon Agent documentation {#mainpage} | ||
# Centreon Monitoring Agent documentation {#mainpage} | ||
|
||
## Introduction | ||
|
||
The purpose of this program is to run checks in Windows and Linux operating systems. It is entirely asynchronous, with the exception of the gRPC layers. It is also single-threaded and therefore needs no mutexes, except in the gRPC part. | ||
The purpose of this program is to run checks on the Windows and Linux operating systems. It is entirely asynchronous, with the exception of the gRPC layers. It is also single-threaded and therefore needs no mutexes, except in the gRPC part. | ||
This is why, when a request is received, it is posted to ASIO for processing in the main thread. | ||
|
||
## Configuration | ||
configuration is given by Engine by a AgentConfiguration sent over grpc | ||
The configuration is given by Engine by an AgentConfiguration message sent over gRPC. | ||
The configuration object is embedded in MessageToAgent::config | ||
|
||
## Scheduler | ||
We trie to spread checks over check_period. | ||
Example: We have 10 checks to execute during one second. check1 will start at now, second at now + 0.1s.. | ||
We try to spread checks over the check_period. | ||
Example: We have 10 checks to execute during one second. Check1 will start at now, second at now + 0.1s.. | ||
|
||
When Agent receives configuration, all checks are recreated. | ||
For example, we have 100 checks to execute in 10 minute, at it is 12:00:00. | ||
First service check will start right now, second one at 12:00:06, third at 12:00:12... and the last one at 12:09:54 | ||
We don't care about tests duration, we work with time points. | ||
In the previous example, time of second check of first service will be scheduled at 12:00:10 even if all other checks has not been yet started. | ||
When the Agent receives configuration, all checks are recreated. | ||
For example, we have 100 checks to execute in 10 minutes, at it is 12:00:00. | ||
The first service check will start right now, the second one at 12:00:06, third at 12:00:12... and the last one at 12:09:54 | ||
We don't care about the duration of tests, we work with time points. | ||
In the previous example, the second check for the first service will be scheduled at 12:00:10 even if all other checks has not been yet started. | ||
|
||
In case of check duration is too long, we might exceed maximum of concurrent checks. In that case checks will b executed as soon one will be ended. | ||
So second check may start later than scheduled time point (12:00:10) if other first checks are too long. Order of checks is always respected even in case of bottleneck. | ||
In case of check duration is too long, we might exceed maximum of concurrent checks. In that case checks will be executed as soon one will be ended. | ||
This means that the second check may start later than the scheduled time point (12:00:10) if the other first checks are too long. The order of checks is always respected even in case of a bottleneck. |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# Copyright 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] | ||
# | ||
|
||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | ||
add_definitions(-DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_TRACE) | ||
add_definitions(${spdlog_DEFINITIONS}) | ||
|
||
add_library( | ||
centreon_process STATIC | ||
# Sources. | ||
process.cc) | ||
|
||
target_precompile_headers(centreon_process REUSE_FROM centreon_common) |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ section: "default" | |
priority: "optional" | ||
maintainer: "Centreon <[email protected]>" | ||
description: | | ||
This software is an agent used to executes commands on remote computers as nsclient does. | ||
This software is an agent used to execute commands on remote computers as nsclient does. | ||
Commit: @COMMIT_HASH@ | ||
vendor: "Centreon" | ||
homepage: "https://www.centreon.com" | ||
|
@@ -59,7 +59,7 @@ scripts: | |
|
||
|
||
rpm: | ||
summary: Centreon Collect Agent. It can be used to execute remotely plugins | ||
summary: Centreon Collect Agent. It can be used to execute plugins remotely | ||
compression: zstd | ||
signature: | ||
key_file: ${RPM_SIGNING_KEY_FILE} | ||
|