SNMP devices

Plugin: go.d.plugin Module: snmp
Overview
This SNMP collector discovers and gathers statistics for network interfaces on SNMP-enabled devices:
- Traffic
- Packets (unicast, multicast, broadcast)
- Errors
- Discards
- Administrative and operational status
Additionally, it collects overall device uptime.
It is compatible with all SNMP versions (v1, v2c, and v3) and uses the gosnmp package.
For advanced users:
- You can manually specify custom OIDs (Object Identifiers) to retrieve specific data points beyond the default metrics.
- However, defining custom charts with dimensions for these OIDs requires manual configuration.
This collector is supported on all platforms.
This collector supports collecting metrics from multiple instances of this integration, including remote instances.
Default Behavior
Auto-Detection
SNMP service discovery is a dedicated component that automatically scans configured networks to find SNMP-enabled devices.
- This feature is disabled by default and requires explicit user configuration to activate.
- When enabled, it discovers devices using customizable credentials, supports various IP range formats (single IPs, ranges, CIDR) with a limit of 512 IPs per subnet, and optimizes network traffic through configurable caching of discovery results.
- Discovered devices are automatically made available to the SNMP collector for monitoring.
The configuration file name is go.d/sd/snmp.conf.
You can edit the configuration file using the edit-config script from the Netdata config directory.
cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config go.d/sd/snmp.conf
Limits
The default configuration for this integration does not impose any limits on data collection.
Performance Impact
Device limitations: Many SNMP switches and routers have limited processing power. They might not be able to report data as frequently as desired. You can monitor response times using go.d.plugin in debug mode to identify potential bottlenecks.
Concurrent access: If multiple collectors or tools access the same SNMP device simultaneously, data points might be skipped. This is a limitation of the device itself, not this collector. To mitigate this, consider increasing the collection interval (update_every) to reduce the frequency of requests.
Metrics
Metrics grouped by scope.
The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.
The metrics that will be collected are defined in the configuration file.
Per snmp device
These metrics refer to the SNMP device.
Labels:
Label | Description |
---|---|
sysName | SNMP device's system name (OID: 1.3.6.1.2.1.1.5). |
Metrics:
Metric | Dimensions | Unit |
---|---|---|
snmp.device_uptime | uptime | seconds |
Per network interface
Network interfaces of the SNMP device being monitored. These metrics refer to each interface.
Labels:
Label | Description |
---|---|
sysName | SNMP device's system name (OID: 1.3.6.1.2.1.1.5). |
ifDescr | Network interface description (OID: 1.3.6.1.2.1.2.2.1.2). |
ifName | Network interface name (OID: 1.3.6.1.2.1.2.2.1.2). |
ifType | Network interface type (OID: 1.3.6.1.2.1.2.2.1.2). |
Metrics:
Metric | Dimensions | Unit |
---|---|---|
snmp.device_net_interface_traffic | received, sent | kilobits/s |
snmp.device_net_interface_unicast | received, sent | packets/s |
snmp.device_net_interface_multicast | received, sent | packets/s |
snmp.device_net_interface_broadcast | received, sent | packets/s |
snmp.device_net_interface_errors | inbound, outbound | errors/s |
snmp.device_net_interface_discards | inbound, outbound | discards/s |
snmp.device_net_interface_admin_status | up, down, testing | status |
snmp.device_net_interface_oper_status | up, down, testing, unknown, dormant, not_present, lower_layer_down | status |
Alerts
There are no alerts configured by default for this integration.
Setup
Prerequisites
No action required.