> 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/n/nessus-sensors.md).

# Nessus Sensors

Tenable Nessus Manager links Nessus agents to the hosts they scan. OctoXLabs reads the agents (sensors) registered in Nessus and adds them to the device inventory.

## Use cases

* List the hosts that run a Nessus agent.

```
Adapters = nessus-sensors
```

* Find Nessus agents that have not connected recently.

```
Adapters = nessus-sensors AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination | Port           | Protocol |
| ------------------- | ----------- | -------------- | -------- |
| OctoXLabs connector | Nessus host | 8834 (default) | HTTPS    |

Port 8834 is the default of the Port parameter. The connector uses HTTPS when Is Secure is on, and HTTP otherwise.

### Required permissions

Not verified. The source instructions do not list the role the account needs. The account must be able to list agents.

## Create credentials in Nessus Sensors

{% stepper %}
{% step %}

### Open Settings

In Nessus, click **Settings** in the top navigation bar. The **About** page appears.
{% endstep %}

{% step %}

### Open My Account

In the left navigation bar, click **My Account**.
{% endstep %}

{% step %}

### Open API Keys

Click the **API Keys** tab.
{% endstep %}

{% step %}

### Generate

Click **Generate**. A dialog box asks you to confirm. Click **Generate** again. Your new API key appears.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
See the [Tenable documentation](https://docs.tenable.com/nessus/Content/GenerateAnAPIKey.htm) for more information.
{% endhint %}

{% hint style="danger" %}
API keys are shown only when you generate them. If you generate new API keys for the same user, OctoXLabs can no longer fetch data from the Nessus host.
{% endhint %}

## Connection parameters

| Parameter      | Required | Type     | Default | Description                                 |
| -------------- | -------- | -------- | ------- | ------------------------------------------- |
| IP or Hostname | Yes      | Text     |         | IP address or host name of the Nessus host. |
| Port           | No       | Integer  | 8834    | Nessus port.                                |
| Access Key     | Yes      | Text     |         | Access key of the Nessus account.           |
| Secret Key     | Yes      | Password |         | Secret key of the Nessus account.           |
| Timeout        | No       | Integer  | 15      | Seconds to wait for API responses.          |
| Is Secure?     | No       | Boolean  | True    | Use HTTPS.                                  |

## Troubleshooting

The connector code does not define adapter specific error messages. Check the connection test result and the connector log.

## Change history

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