> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/c/checkmk.md).

# Checkmk

Checkmk is an IT monitoring platform for networks, servers, clouds, containers and applications. OctoXLabs reads the configured hosts and the local users through the Checkmk REST API.

## Use cases

* **Find monitored hosts missing from endpoint protection.** List hosts that Checkmk monitors but CrowdStrike does not report.

```
Adapters = checkmk AND NOT Adapters = falcon-crowdstrike
```

* **Find Checkmk users with no directory account.** List Checkmk users that are not found in Active Directory. How accounts are matched depends on your user merge settings.

```
Adapters = checkmk AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                   | Port                            | Protocol                           |
| ------------------- | ----------------------------- | ------------------------------- | ---------------------------------- |
| OctoXLabs connector | Checkmk server (IP parameter) | 443 by default (Port parameter) | HTTPS (HTTP when Is Secure is off) |

The API path is `/<site>/check_mk/api/1.0`.

### Required permissions

| Scope or role                                                    | Permission | Needed for    |
| ---------------------------------------------------------------- | ---------- | ------------- |
| Admin role, or a role with read permission on Host Configuration | Read       | Listing hosts |
| Admin role, or a role with read permission on User Management    | Read       | Listing users |

The user must have access to the REST API. No automation secret is required. Standard password authentication is used.

## Create credentials in Checkmk

{% stepper %}
{% step %}

### Choose a local user

Use a local Checkmk user with access to the REST API. The built-in `cmkadmin` account, or any user with at least read permission on host and user endpoints, works.
{% endstep %}

{% step %}

### Find the site name

The site name is part of the Checkmk URL, for example `https://<ip>/<site>/check_mk/`. The default site name is `cmk`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                           |
| --------- | -------- | ------- | ------- | ----------------------------------------------------- |
| IP        | Yes      | String  | None    | IP address or hostname of the Checkmk server.         |
| Port      | No       | Integer | 443     | HTTPS port. Change it for a non-standard port.        |
| Is Secure | No       | Boolean | True    | Use HTTPS.                                            |
| Site      | No       | String  | cmk     | Checkmk site name.                                    |
| Username  | Yes      | String  | None    | Local Checkmk user.                                   |
| Password  | Yes      | String  | None    | Password of the user. Stored as a sensitive value.    |
| Timeout   | No       | Integer | 30      | Seconds to wait for an API response. Advanced option. |

## Troubleshooting

| Error message                                                  | Cause                                  | Fix                                                                        |
| -------------------------------------------------------------- | -------------------------------------- | -------------------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an error status. | Check the user, the password, the site name, the port and the user's role. |

## Change history

{% hint style="info" %}
Available starting from version 6.5.2.
{% endhint %}
