> 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/o/observeit.md).

# ObserveIT

Proofpoint ObserveIT monitors user activity on endpoints and servers. OctoXLabs connects to the ObserveIT MSSQL database and reads the `ServerInventory` table to add the monitored servers to the device inventory.

## Use cases

* **Find monitored servers that no other source reports.**

```
Adapters = observe-it AND NOT Adapters = active-directory
```

* **Review the monitored server list.** Use it to check which servers have the ObserveIT agent.

```
Adapters = observe-it
```

## Before you begin

### Network

| Source              | Destination                                    | Port                  | Protocol         |
| ------------------- | ---------------------------------------------- | --------------------- | ---------------- |
| OctoXLabs connector | ObserveIT SQL Server (IP parameter)            | 1433 (Port parameter) | TDS (SQL Server) |
| OctoXLabs connector | Kerberos KDC (KDC IP parameter), Kerberos only | Not verified          | Kerberos         |

### Required permissions

| Scope or role | Permission | Needed for                |
| ------------- | ---------- | ------------------------- |
| Database user | Select     | Reading `ServerInventory` |
| Database user | List       | Browsing the database     |

If you use the PyODBC driver, ODBC Driver 17 or 18 for SQL Server must be installed on the connector machine. The connector tries Driver 17 first, then Driver 18 for SQL authentication. Kerberos mode tries Driver 18 first.

## Create credentials in ObserveIT

{% stepper %}
{% step %}

### Open SQL Server Management Studio

Open Microsoft SQL Server Management Studio.
{% endstep %}

{% step %}

### Create a login

Open the **Security** folder, right-click **Login**, and click **New Login**.
{% endstep %}

{% step %}

### Set the details

Select the authentication type that the server uses. Fill in the details and select your ObserveIT database as **Default Database**.
{% endstep %}

{% step %}

### Save and test the login

Save the user. Log in to the database once with this user to avoid an error. The user needs Select and List privileges.
{% endstep %}

{% step %}

### Optional: set up Kerberos

To use Active Directory credentials, set **Auth Type** to Kerberos and fill in the Kerberos fields below. For keytab mode, create the keytab with `ktpass` on a domain controller and upload it.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                | Required    | Type    | Default  | Description                                                                                                   |
| ------------------------ | ----------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------- |
| IP                       | Yes         | String  | None     | Address of the ObserveIT SQL Server.                                                                          |
| Port                     | No          | Integer | 1433     | SQL Server port.                                                                                              |
| Domain                   | No          | String  | None     | Domain FQDN.                                                                                                  |
| Database                 | Yes         | String  | None     | Name of the database.                                                                                         |
| Username                 | Yes         | String  | None     | Database login.                                                                                               |
| Password                 | Conditional | String  | None     | Required for SQL authentication and for Kerberos mode `password`. It can be empty for Kerberos mode `keytab`. |
| Use PyODBC Driver        | No          | Boolean | False    | Use the PyODBC driver instead of pymssql.                                                                     |
| Batch Size               | No          | Integer | 300      | Rows fetched per batch.                                                                                       |
| Query Timeout            | No          | Integer | 60       | Query timeout in seconds.                                                                                     |
| Auth Type                | No          | String  | SQL      | `SQL` or `Kerberos`.                                                                                          |
| Kerberos Mode            | No          | String  | password | `password` uses the username and password to get a TGT. `keytab` uses an uploaded keytab.                     |
| Kerberos Realm           | No          | String  | None     | AD realm in uppercase, for example `CORP.LOCAL`. Can be empty if the username is in UPN format.               |
| KDC IP                   | No          | String  | None     | Host or IP of the Kerberos KDC, usually a domain controller.                                                  |
| Kerberos SPN             | No          | String  | None     | Service Principal Name override, for example `MSSQLSvc/sqlserver.corp.local:1433`.                            |
| Keytab                   | Conditional | String  | None     | Required when Kerberos Mode is `keytab`.                                                                      |
| Encrypt                  | No          | Boolean | True     | TLS encryption. Applied only when Auth Type is Kerberos.                                                      |
| Trust Server Certificate | No          | Boolean | True     | Skip certificate chain validation. Applied only when Auth Type is Kerberos.                                   |

## Troubleshooting

| Error message                                                                                                     | Cause                                                       | Fix                                                                   |
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | --------------------------------------------------------------------- |
| No ODBC Driver found. Install 'ODBC Driver 17' or 'ODBC Driver 18' for SQL Server.                                | PyODBC or Kerberos is used and no ODBC driver is installed. | Install ODBC Driver 17 or 18 for SQL Server on the connector machine. |
| Kerberos config failed: SQL Server reports auth\_scheme=''. Check SPN registration in AD and the Encrypt setting. | The connection worked but did not use Kerberos.             | Check the SPN registration in AD and the Encrypt setting.             |
| Keytab is required when kerberos\_mode is 'keytab'.                                                               | Kerberos Mode is `keytab` and no keytab was given.          | Upload the keytab.                                                    |
| Password is required for SQL Server Authentication.                                                               | Auth Type is SQL and the password is empty.                 | Enter the password.                                                   |

## Change history

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