---
title: "SNMP: MIB Generation"
description: "Generate and use MIB files for SNMP monitoring of RavenDB servers, including OID structure and integration with network management tools."
url: "https://docs.ravendb.net/7.2/monitoring/integrations/snmp/mib-generation"
version: "7.2"
---

# SNMP: MIB Generation

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## SNMP: MIB Generation

> **Note**
>
> - RavenDB allows you to generate a MIB (Management Information Base) file that contains
>   a structured collection of SNMP OIDs.
>
> - The MIB can be generated through RavenDB's `/monitoring/snmp/mib` endpoint,
>   and fine-tuned using flags.
>
> - Monitoring tools like [Zabbix](https://www.zabbix.com) and [PRTG](https://www.paessler.com/prtg)
>   can import the created MIB and use it to extract RavenDB metrics via SNMP.
>
> - In this article:
>   - [The MIB generation endpoint](#the-mib-generation-endpoint)
>   - [Fine-tuning the OID list](#fine-tuning-the-oid-list)

## The MIB generation endpoint {#the-mib-generation-endpoint}

To generate a MIB, send a GET request to the server's `/monitoring/snmp/mib` endpoint.  
The endpoint returns a text file named `RavenDB-MIB.txt`, listing RavenDB's OIDs.  
You can download the file using your browser, or import the file into a monitoring tool.

On a secure server, the request must present a client certificate with
[Operator](https://docs.ravendb.net/7.2/server/security/authorization/security-clearance-and-permissions.md#operator)
clearance or higher.  
On an unsecure server, no certificate is needed.

The endpoint's full URL is the server address (including the port) followed by the endpoint path.  
e.g., the MIB of RavenDB's live test server:  
<http://live-test.ravendb.net/monitoring/snmp/mib>

## Fine-tuning the OID list {#fine-tuning-the-oid-list}

By default, the generated MIB includes only the server metrics OIDs.  
Three query-string flags select the OID groups the MIB includes:

| Flag | Description |
| - | - |
| `includeServer` | Include the server metrics OIDs.<br />Default: `true`. |
| `includeCluster` | Include the cluster metrics OIDs.<br />Default: `false`. |
| `includeDatabases` | Include the database metrics OIDs.<br />Default: `false`. |

e.g., to add the database metrics OIDs to the MIB:  
<http://live-test.ravendb.net/monitoring/snmp/mib?includeDatabases=true>

To generate a MIB without the server metrics OIDs:  
<http://live-test.ravendb.net/monitoring/snmp/mib?includeServer=false>

Or combine flags to select exactly the groups you need, like a MIB with the database
metrics OIDs alone:  
<http://live-test.ravendb.net/monitoring/snmp/mib?includeServer=false&includeDatabases=true>
