> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudthinker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Centreon

> Connect Centreon with an API token so agents review problems and downtimes, then acknowledge, recheck, or set downtime.

Connect Centreon so [CloudThinker](https://docs.cloudthinker.io/guide/agents/overview.md) can review hosts, services, problems, and downtimes, and, if you allow it, acknowledge a problem, run a check now, or set downtime. The connection signs in with a Centreon API token and can do only what that token's user is allowed to do.

## Prerequisites

* A Centreon web server that CloudThinker can reach over HTTPS. For a private address, follow [Reaching private services](https://docs.cloudthinker.io/guide/connections/overview.md#reaching-private-services).
* A Centreon user for CloudThinker, and an administrator who can set its access control lists (ACLs).
* The **Admin** role in your CloudThinker workspace. See [Roles](https://docs.cloudthinker.io/guide/security/roles.md).

## Setup

**1. Give the user access in Centreon**

Ask your Centreon administrator to add the CloudThinker user to an ACL access group. Under **Administration → ACL → Resources Access**, choose the hosts and services agents should see. Under **Menus Access**, give the group the **Resources Status** page. For changes, also grant the acknowledgement, downtime, and check actions under **Actions Access**. See [Centreon's ACL guide](https://docs.centreon.com/docs/administration/access-control-lists/).

**2. Create an API token**

Sign in to Centreon as that user, or as an administrator who creates the token for that user. Go to **Administration → Authentication Tokens** (**API Tokens** in some versions), click **Add**, choose the **API** type, and click **Generate new token**. Copy the token: Centreon does not show it again. See [Centreon's token instructions](https://docs.centreon.com/cloud/administration/authentication-tokens/).

**3. Connect in CloudThinker**

Open **Settings → Workspace → Connections**, open the **Discover** tab, and select **Centreon**. Click **Connect**, fill in the fields below, then click **Connect** in the dialog.

**Success state:** the connection shows a **Connected** status and reports how many hosts and services the token sees. CloudThinker then opens a chat that takes a read-only deep look at the connection ("Often takes about 15 min. You can leave the chat."). To run it again later, open the card's **More** menu and choose **Try in chat**.

## Connection details

| Field | Required | Description |
| - | - | - |
| **Centreon URL** | Yes | The HTTPS address you open Centreon at, including its path, such as `https://monitor.example.com/centreon`. Leave off `/api`, credentials, query strings, and fragments |
| **API token** | Yes | The token you generated. It acts as its user |
| **CA certificate (optional)** | No | The PEM of the private certificate authority that issued the Centreon certificate. Leave it empty to use public trust. CloudThinker always checks the certificate and hostname |

CloudThinker refuses redirects, so enter the exact address Centreon answers at.

## Required permissions

The token has its user's rights. Centreon ACLs decide which hosts and services that user sees and what it may do.

| You want agents to | Centreon access |
| - | - |
| Review hosts, services, problems, and downtimes | The **Resources Status** page in **Menus Access**, and the hosts and services in **Resources Access** |
| Also acknowledge, remove an acknowledgement, set downtime, or run a check now | The matching acknowledgement, downtime, and check actions in **Actions Access** |

> [!TIP]
>
> Start with a user that can only open **Resources Status**. Agents can still investigate everything it sees, and no approval, mistaken or automatic, can change anything in Centreon.

## Agent capabilities

| Capability | What agents can do |
| - | - |
| **Overview** | Count hosts, services, current problems, unhandled problems, and downtimes, with the worst unhandled problems first |
| **Problems** | List hosts that are down and services in a problem state, with how long and the check output. Acknowledged problems and problems in downtime are left out unless you ask |
| **One host** | Read a host's status, address, and poller, its services worst first, and its downtimes |
| **Changes** | Acknowledge one host or service problem or remove its acknowledgement, run one check now, set downtime on one host or service, or end one downtime |

Reads run without asking. Each change targets one host or service, and the agent reads it again afterwards to confirm the change. A downtime starts at once and lasts from 1 minute to 7 days. A downtime on a host covers every service on that host, and the agent says so before it asks.

Agents cannot change configuration, add hosts, or send custom notifications. Make those changes in Centreon.

Writes also need **Allow writes** on, which starts on. To lock writes in CloudThinker, open **Centreon** in **Settings → Workspace → Connections** and turn off the **Allow writes** switch on its detail panel.

Every change an agent makes goes through your workspace's [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md) first. On the default **Auto · Rules + AI · Ask me** mode, AI judgment can let a safe change run without asking — and an Allow [Rule](https://docs.cloudthinker.io/guide/approvals/rules.md) can too. Choose **Manual** to approve every change yourself.

### Verify the connection

```text theme={null}
Give me a Centreon overview: host, service, and problem totals, the worst unhandled problems, and current downtimes
```

Expect real host and service names with totals. A failed section is unavailable data, not zero problems.

### Example prompts

```text theme={null}
Which Centreon hosts are down and which services are critical right now?
How is web-prod-01 doing in Centreon? Show its services worst first
Set a 2-hour Centreon downtime on db-prod-01 for planned maintenance
```

## Troubleshooting

> [accordion] Centreon rejected the API token. It may have expired or been revoked.
>
> Generate a new token in Centreon, then edit the connection and paste it into **API token**.

> [accordion] The token works, but its user cannot open Resources Status. Give that user access to it.
>
> Add **Resources Status** to the user's access group under **Administration → ACL → Menus Access**, then connect again. If a change fails later with a permission error, grant the matching action under **Actions Access**.

> [accordion] That address has no Centreon API. Use the address you open Centreon at, such as [https://monitor.example.com/centreon](https://monitor.example.com/centreon).
>
> Enter the address from your browser, including its path such as `/centreon`. Leave off `/api`.

> [accordion] Centreon answered with a redirect. Use the exact https address you open Centreon at.
>
> Enter the final HTTPS address Centreon serves directly, not an address that forwards to it.

> [accordion] The Centreon certificate is not trusted.
>
> Install a certificate from a trusted authority, or paste the issuing CA certificate into **CA certificate (optional)**. If CloudThinker says the CA certificate is not valid PEM, paste the full certificate, including its `BEGIN` and `END` lines.

> [accordion] Could not reach Centreon over HTTPS. Check the URL and that the sandbox can reach it.
>
> CloudThinker could not open a connection to that address. Confirm the URL starts with `https://` and that your firewall lets CloudThinker reach Centreon. Browser access from your laptop alone is not enough.

> [accordion] An agent says the Centreon write tool is off
>
> **Allow writes** is off on this connection, so the change was refused and nothing changed. Turn it on in the connection's detail panel, or make the change in Centreon.

## Security

* **Least privilege** — grant only the permissions the agents need for your use case; start read-only and widen later.
* **Read-only by default** — use read-only credentials unless you want agents to make changes through this connection.
* **Rotate credentials** — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
* **Revoke on offboarding** — remove the credential at the provider when you delete a connection or a teammate leaves.

- Scope the user with **Resources Access** to the hosts and services agents need.
- If the token has an expiration date, generate a new token before it lapses and update the connection.

## Related

> [card] [Approval rules](https://docs.cloudthinker.io/guide/approvals/rules.md)
>
> Decide which Centreon changes run, wait for a person, or are refused.

> [card] [Icinga](https://docs.cloudthinker.io/guide/connections/icinga.md)
>
> Check hosts and services in Icinga 2, then acknowledge or recheck one.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.