-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into MON-153475-slack
- Loading branch information
Showing
1,457 changed files
with
34,496 additions
and
23,138 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: clean-cache | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
clean-cache: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
||
- name: Clean cache | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
REPO=${{ github.repository }} | ||
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge" | ||
echo "Fetching list of cache key" | ||
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 ) | ||
## Setting this to not fail the workflow while deleting cache keys. | ||
set +e | ||
echo "Deleting caches..." | ||
for cacheKey in $cacheKeysForPR | ||
do | ||
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm | ||
done | ||
echo "Done" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 was deleted.
Oops, something went wrong.
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,5 @@ | ||
1. Go to **Configuration > Hosts > Hosts**. | ||
2. Use the **Poller** list to display only the resources monitored by the poller you want. | ||
3. Select all hosts using the check box in the left column header. | ||
4. Select **More actions > Mass change** and edit the **Monitoring server** field in the configuration form. | ||
5. [Deploy the configuration](../monitoring/monitoring-servers/deploying-a-configuration.md) for both pollers. |
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,25 @@ | ||
--- | ||
id: poller-migrate | ||
title: Migrating a poller to another host machine | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
import MoveResources from './_move-resources.mdx'; | ||
|
||
In some cases you might want to change the OS of the host machine for your poller. The correct procedure for this is to install a new server and migrate your resources to it. | ||
|
||
1. Install a new host machine for your poller as per our [prerequisites](prerequisites.md). | ||
2. [Deploy the poller](deploy-poller.md) to the new machine. | ||
3. Copy the configuration for the following elements from the old poller to the new one: | ||
|
||
- Custom plugins (example: community plugins, or custom developments) | ||
- If you are using the **centreon-as400** connector (installation and configuration): **/etc/centreon-as400/**. | ||
|
||
4. Move all the resources you want to the new poller. | ||
|
||
<MoveResources /> | ||
|
||
The resources are now monitored by the new poller: the services monitored by this poller are moved to the other poller automatically. | ||
|
||
5. [Remove the old poller](poller-remove.md) from your architecture. |
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,19 @@ | ||
--- | ||
id: poller-monitor | ||
title: Monitoring your pollers | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
The best practice is to have a poller monitor another poller (i.e. no poller should be monitored by itself). | ||
|
||
## Monitoring a Centreon Cloud poller | ||
|
||
To monitor a poller in your Centreon platform: | ||
|
||
1. Install the [**Centreon Poller** monitoring connector](/pp/integrations/plugin-packs/procedures/applications-monitoring-centreon-poller/). | ||
2. [Create a host](../monitoring/basic-objects/hosts.md): | ||
* Apply the **App-Monitoring-Centreon-Poller-custom** template to it. | ||
* Select another poller from the **Monitoring server** list. | ||
3. [Deploy the configuration](../monitoring/monitoring-servers/deploying-a-configuration.md). Your new host appears in the [Resource status](../alerts-notifications/resources-status.md) page. |
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,20 @@ | ||
--- | ||
id: poller-remove | ||
title: Removing a poller from your architecture | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
import MoveResources from './_move-resources.mdx'; | ||
|
||
> In order to ensure the stability and integrity of your monitoring environment, do not delete the central poller. The central poller plays a critical role in the overall operation of the Centreon platform. Removing it can lead to unintended disruptions in service. We are in the process of implementing safeguards to prevent the accidental deletion of the central poller. | ||
To remove a poller from your Centreon architecture: | ||
|
||
1. If you haven't already done so, move the resources that the poller used to monitor to another poller: | ||
|
||
<MoveResources /> | ||
|
||
The services monitored by this poller are moved to the other poller automatically. | ||
3. On the **Configuration > Pollers > Pollers** page, select the poller you want to remove, then click **Delete**. The poller disappears from the list of pollers. | ||
4. [Deploy the configuration](../monitoring/monitoring-servers/deploying-a-configuration.md) for the central server. The poller is removed for good. This cannot be undone. |
Oops, something went wrong.