Skip to content

Commit 8e9fee1

Browse files
authored
Merge branch 'staging' into MON-185324-remove-obsolete-macros
2 parents 4e39dbc + f798720 commit 8e9fee1

File tree

3,754 files changed

+178167
-152684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,754 files changed

+178167
-152684
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Please include a short summary of the changes and what is the purpose of the PR.
44

55
## Target version (i.e. version that this PR changes)
66

7-
- [ ] 23.10.x
87
- [ ] 24.04.x
98
- [ ] 24.10.x
109
- [ ] 25.10.x
10+
- [ ] 26.10.x
1111
- [ ] Cloud
1212
- [ ] Monitoring Connectors
13-
- [ ] Quanta by Centreon
13+
- [ ] DEM

.github/workflows/actionlint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-24.04
1717
steps:
1818
- name: Checkout sources
19-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2020

2121
- name: Download actionlint
2222
id: get_actionlint
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-24.04
4141
steps:
4242
- name: Checkout sources
43-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
43+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4444

4545
- name: Install Yaml
4646
run: |

.github/workflows/archive.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Checkout sources
18-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1919
with:
2020
fetch-depth: 0
2121

22-
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
22+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
2323
with:
2424
version: 9
2525
run_install: false
2626

2727
- name: Set up Node
28-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
28+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2929
with:
3030
node-version: 22
3131
cache: pnpm
@@ -45,7 +45,7 @@ jobs:
4545
run: ARCHIVED_VERSION="${{ github.event.inputs.version }}" pnpm build
4646

4747
- name: Store build archived doc in cache
48-
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
48+
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
4949
with:
5050
path: "./build"
5151
key: "${{ github.sha }}-${{ github.run_id }}-build-archived-doc"
@@ -55,17 +55,19 @@ jobs:
5555
runs-on: infrastructure
5656
steps:
5757
- name: Restore built archived doc from cache
58-
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
58+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5959
with:
6060
path: "./build"
6161
key: "${{ github.sha }}-${{ github.run_id }}-build-archived-doc"
6262
fail-on-cache-miss: true
6363

6464
- name: Setup awscli
6565
run: |
66-
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
67-
sudo unzip -q awscliv2.zip
68-
sudo ./aws/install
66+
if ! command -v aws >/dev/null 2>&1; then
67+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
68+
sudo unzip -q awscliv2.zip
69+
sudo ./aws/install
70+
fi
6971
shell: bash
7072

7173
- name: Copy to S3

.github/workflows/clean-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-24.04
1111
steps:
1212
- name: Checkout sources
13-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1414

1515
- name: Clean cache
1616
run: |

.github/workflows/deploy-to-production.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
steps:
2121
- name: Setup awscli
2222
run: |
23-
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
24-
sudo unzip -q awscliv2.zip
25-
sudo ./aws/install
23+
if ! command -v aws >/dev/null 2>&1; then
24+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
25+
sudo unzip -q awscliv2.zip
26+
sudo ./aws/install
27+
fi
2628
shell: bash
2729

2830
- name: Deploy from staging to https://docs.centreon.com

.github/workflows/documentation.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout sources
30-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3131

3232
- name: Get changes
3333
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
@@ -62,7 +62,7 @@ jobs:
6262
- 'versioned_sidebars/**'
6363
6464
- name: Manage versions to build
65-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
65+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
6666
if: ${{ steps.changes.outputs.global == 'false' && steps.changes.outputs.versions_count < 100 }}
6767
with:
6868
script: |
@@ -133,7 +133,7 @@ jobs:
133133
core.exportVariable('build_dem', build_dem);
134134
135135
- name: Manage versions to build
136-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
136+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
137137
if: ${{ steps.changes.outputs.global == 'true' || steps.changes.outputs.versions_count >= 100 || (github.ref_name == 'staging' && github.event_name != 'pull_request') }}
138138
with:
139139
script: |
@@ -152,7 +152,7 @@ jobs:
152152
core.exportVariable('build_dem', '1');
153153
154154
- name: Manage versions to build
155-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
155+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
156156
id: filters
157157
with:
158158
script: |
@@ -183,17 +183,17 @@ jobs:
183183

184184
steps:
185185
- name: Checkout sources
186-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
186+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
187187
with:
188188
fetch-depth: 0
189189

190-
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
190+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
191191
with:
192192
version: 9
193193
run_install: false
194194

195195
- name: Set up Node
196-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
196+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
197197
with:
198198
node-version: 22
199199
cache: pnpm
@@ -204,7 +204,7 @@ jobs:
204204
shell: bash
205205

206206
- name: Restore docusaurus build from cache
207-
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
207+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
208208
with:
209209
path: |
210210
.docusaurus
@@ -232,7 +232,7 @@ jobs:
232232
shell: bash
233233

234234
- name: Store docusaurus build cache in cache
235-
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
235+
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
236236
with:
237237
path: |
238238
.docusaurus
@@ -253,10 +253,10 @@ jobs:
253253

254254
steps:
255255
- name: Checkout sources
256-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
256+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
257257

258258
- name: Restore build from cache
259-
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
259+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
260260
with:
261261
path: |
262262
.docusaurus
@@ -266,9 +266,11 @@ jobs:
266266

267267
- name: Setup awscli
268268
run: |
269-
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
270-
sudo unzip -q awscliv2.zip
271-
sudo ./aws/install
269+
if ! command -v aws >/dev/null 2>&1; then
270+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
271+
sudo unzip -q awscliv2.zip
272+
sudo ./aws/install
273+
fi
272274
shell: bash
273275

274276
- name: Deploy to https://docs-preview-int.centreon.com
@@ -295,7 +297,7 @@ jobs:
295297

296298
steps:
297299
- name: Prepare environment variables for comment
298-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
300+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
299301
with:
300302
script: |
301303
const preview_urls = ${{ needs.get-versions.outputs.build_environments }}.map((environment) => {
@@ -335,10 +337,10 @@ jobs:
335337

336338
steps:
337339
- name: Checkout sources
338-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
340+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
339341

340342
- name: Restore build from cache
341-
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
343+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
342344
with:
343345
path: |
344346
.docusaurus
@@ -372,10 +374,10 @@ jobs:
372374

373375
steps:
374376
- name: Checkout sources
375-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
377+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
376378

377379
- name: Restore build from cache
378-
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
380+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
379381
with:
380382
path: |
381383
.docusaurus
@@ -385,9 +387,11 @@ jobs:
385387

386388
- name: Setup awscli
387389
run: |
388-
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
389-
sudo unzip -q awscliv2.zip
390-
sudo ./aws/install
390+
if ! command -v aws >/dev/null 2>&1; then
391+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
392+
sudo unzip -q awscliv2.zip
393+
sudo ./aws/install
394+
fi
391395
shell: bash
392396

393397
- name: Deploy to https://docs-next-int.centreon.com

.github/workflows/set-pull-request-external-label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Set PR external label
19-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
19+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2020
with:
2121
script: |
2222
const label = 'external';

archivedVersions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"23.10": "https://archives-docs.centreon.com/23.10/",
23
"23.04": "https://archives-docs.centreon.com/23.04/",
34
"22.10": "https://archives-docs.centreon.com/22.10/",
45
"22.04": "https://archives-docs.centreon.com/22.04/",

cloud/administration/api_tokens.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ id: api-tokens
33
title: API tokens
44
---
55

6+
import Tabs from '@theme/Tabs';
7+
import TabItem from '@theme/TabItem';
8+
69
Using an API token, a third-party application can call the Centreon API to perform actions in Centreon (webhooks).
710

811
A token is linked to one [Centreon user](../users/users.md) and is valid only for a certain period of time. API calls will be executed according to the [rights assigned to this user](../users/users.md#user-roles). A specific user can have several tokens.
@@ -30,3 +33,37 @@ Users with the **Administrator** role can:
3033

3134
* Disable a valid API token using the **Enabled/Disabled** switch to the right of the line. The token can still be reenabled later.
3235
* Delete a token using the **Delete** button.
36+
37+
## Using a token in the Centreon MAP API
38+
39+
- You need to know the URL of the MAP server in order to use MAP APIs. It looks like the following:
40+
41+
<Tabs groupId="sync">
42+
<TabItem value="HTTP" label="HTTP">
43+
44+
```
45+
http://serverURL:8081/_centreon/centreon-map/api/beta/
46+
```
47+
48+
</TabItem>
49+
50+
<TabItem value="HTTPS" label="HTTPS">
51+
52+
```
53+
https://serverURL:9443/_centreon/centreon-map/api/beta/
54+
```
55+
56+
</TabItem>
57+
</Tabs>
58+
59+
- Then update the header with a Centreon token:
60+
61+
```
62+
Headers {
63+
Content-Type = application/json
64+
X-client-version = 25.09.0
65+
Authorization = Bearer \{jwtToken\}
66+
}
67+
```
68+
69+
Replace ``Authorization = Bearer \{jwtToken\}`` with ``X-AUTH-TOKEN = your-centreon-token``. Ensure the token is not revoked or expired.

cloud/administration/media.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ title: Managing media
44
---
55

66
Media are images used by the Centreon web interface. These images are used to
7-
represent the monitored resource in a more intuitive way, propose backgrounds
7+
represent the monitored resource in a more intuitive way, provide backgrounds
88
for cartography modules, etc.
99

10-
> You must be logged into Centreon with an administrator or editor profile.
10+
* To manage media, you must be logged into Centreon with an administrator or editor profile.
11+
* In Centreon, a user can only view and use an image if an [access rule](resource_access.md) explicitly allows it.
1112

1213
## Adding images
1314

0 commit comments

Comments
 (0)