# Monitor System via SNMP

You can use SNMP to monitor the status of Director Console components using OIDs. Director Console supports both SNMPv2 and SNMPv3 protocol.

Director Console uses *1.3.6.1.4.1.54322.2* as the base OID to get a list of the exposed OIDs and their corresponding information. You can also use the OID of the individual system components and services in Director Console to retrieve their status.

To monitor Director Console components, open *UDP port 161* and connect to SNMP. For details on how to open a port in the Director setup, go [here](https://docs.logpoint.com/director/deploy-and-configure/deploy-director/director-deployment-overview#port-information-of-the-director-setup).

{% hint style="warning" %}
Both SNMPv2 and SNMPv3 are enabled by default to localhost. Before exposing the SNMP to UDP port 161, change the default credentials to ensure system security.
{% endhint %}

### SNMPv2

**Syntax for snmpwalk via SNMPv2**

```
snmpwalk -v2c -c <community-string> <api_server_ip> .OID
```

Here, *\<community-string>* is public by default.

**Changing Community String**

```
change-snmpv2-cstring
```

The community string must be at least eight characters long. Only uppercases, lowercases, and numbers are accepted.

**Syntax for enabling SNMPv2**

```
legacy-snmp enable
```

**Syntax for disabling SNMPv2**

```
legacy-snmp disable
```

### SNMPv3

**Syntax for snmpwalk via SNMPv3**

```
snmpwalk -v3 -u <user name> -l authPriv -a MD5 -A <user password> -x DES -X <DES key> <api_server_ip> .OID
```

Here, *\<DES key>* is `5nMpvEenC^pt` and *\<user password>* is `changeme` by default.

**Changing Key**

```
change-snmpv3-key
```

The key must be at least eight characters long. Only uppercases, lowercases, numbers, and symbols except space are accepted.

**Changing Password**

```
change-snmpv3-passwd
```

The password must be at least eight characters long. Only uppercases, lowercases, and numbers are accepted.

#### List of SNMP OIDs for Director Console

| OID                       | Description                                                                                    |
| ------------------------- | ---------------------------------------------------------------------------------------------- |
| **1.3.6.1.4.1.54322.2.1** | **Metrics from dc-front**                                                                      |
| 1.3.6.1.4.1.54322.2.1.1   | Name                                                                                           |
| 1.3.6.1.4.1.54322.2.1.2   | CPU Percentage: The percentage of the host’s CPU used by dc-front                              |
| 1.3.6.1.4.1.54322.2.1.3   | Memory Usage: The total memory used by dc-front                                                |
| 1.3.6.1.4.1.54322.2.1.4   | Memory Limit: The total memory allocated to dc-front                                           |
| 1.3.6.1.4.1.54322.2.1.5   | Memory Percentage: The total percentage of allocated memory used by dc-front                   |
| 1.3.6.1.4.1.54322.2.1.6   | Network I/O: The amount of data that dc-front has sent and received over its network interface |
| 1.3.6.1.4.1.54322.2.1.7   | Block I/O: The amount of data that dc-front has read and written from the block devices        |
| 1.3.6.1.4.1.54322.2.1.8   | PIDs: The number of processes or threads created by dc-front                                   |

***

| OID                       | Description                                                                                   |
| ------------------------- | --------------------------------------------------------------------------------------------- |
| **1.3.6.1.4.1.54322.2.2** | **Metrics from dc-back**                                                                      |
| 1.3.6.1.4.1.54322.2.2.1   | Name                                                                                          |
| 1.3.6.1.4.1.54322.2.2.2   | CPU Percentage: The percentage of the host’s CPU used by dc-back                              |
| 1.3.6.1.4.1.54322.2.2.3   | Memory Usage: The total memory used by dc-back                                                |
| 1.3.6.1.4.1.54322.2.2.4   | Memory Limit: The total memory allocated to dc-back                                           |
| 1.3.6.1.4.1.54322.2.2.5   | Memory Percentage: The total percentage of allocated memory used by dc-back                   |
| 1.3.6.1.4.1.54322.2.2.6   | Network I/O: The amount of data that dc-back has sent and received over its network interface |
| 1.3.6.1.4.1.54322.2.2.7   | Block I/O: The amount of data that dc-back has read and written from the block devices        |
| 1.3.6.1.4.1.54322.2.2.8   | PIDs: The number of processes or threads created by dc-back                                   |

***

| OID                       | Description                                                                                 |
| ------------------------- | ------------------------------------------------------------------------------------------- |
| **1.3.6.1.4.1.54322.2.3** | **Metrics from dc-db**                                                                      |
| 1.3.6.1.4.1.54322.2.3.1   | Name                                                                                        |
| 1.3.6.1.4.1.54322.2.3.2   | CPU Percentage: The percentage of the host’s CPU used by dc-db                              |
| 1.3.6.1.4.1.54322.2.3.3   | Memory Usage: The total memory used by dc-db                                                |
| 1.3.6.1.4.1.54322.2.3.4   | Memory Limit: The total memory allocated to dc-db                                           |
| 1.3.6.1.4.1.54322.2.3.5   | Memory Percentage: The total percentage of allocated memory used by dc-db                   |
| 1.3.6.1.4.1.54322.2.3.6   | Network I/O: The amount of data that dc-db has sent and received over its network interface |
| 1.3.6.1.4.1.54322.2.3.7   | Block I/O: The amount of data that dc-db has read and written from the block devices        |
| 1.3.6.1.4.1.54322.2.3.8   | PIDs: The number of processes or threads created by dc-db                                   |
