> 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/k/karmasis-infraskope.md).

# Karmasis Infraskope

Karmasis Infraskope is an infrastructure monitoring product from Karmasis that runs agents on servers. OctoXLabs reads the Infraskope agents and adds the servers to the device inventory.

## Use cases

* **Find servers monitored by Infraskope.** List devices that Infraskope reports.

```
Adapters = karmasis-infraskope
```

* **Find servers that stopped contacting Infraskope.** Last seen comes from `LastContacted`.

```
Adapters = karmasis-infraskope AND NOT LastSeen last now-7d/d
```

## Before you begin

### Network

| Source              | Destination                | Port                | Protocol |
| ------------------- | -------------------------- | ------------------- | -------- |
| OctoXLabs connector | Karmasis Infraskope server | 8443 (configurable) | HTTPS    |

Clear **SSL** to use HTTP.

### Required permissions

Not verified: roles are not named in the sources. The baseline only says that an API user must be created.

## Create credentials in Karmasis Infraskope

{% stepper %}
{% step %}

### Create an API user

To access the API, the user needs an **API-User** created from the settings section.
{% endstep %}

{% step %}

### Note the connection details

Note the server address, the port (8443 by default) and the credentials of the API user.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                          |
| --------- | -------- | ------- | ------- | ------------------------------------ |
| IP        | Yes      | String  | None    | IP address of Karmasis Infraskope.   |
| Port      | No       | Integer | 8443    | Port number.                         |
| Username  | Yes      | String  | None    | Username of the API user.            |
| Password  | Yes      | String  | None    | Password of the API user.            |
| SSL       | No       | Boolean | True    | Connect over HTTPS.                  |
| Timeout   | No       | Integer | 30      | Seconds to wait for an API response. |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                                                            |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with a status other than 200. This is the shared REST connector error. | Read the status code and body in the message, then check the credentials, permissions and URL. |

## Change history

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