SNMP Configuration¶
This section covers Simple Network Management Protocol (SNMP) configuration in FloofOS for network monitoring integration.
Overview¶
FloofOS includes an SNMP agent that exposes VPP interface statistics directly to monitoring systems. The SNMP service is disabled by default and must be explicitly enabled.
VPP Interface Monitoring
The SNMP agent reads interface statistics directly from VPP (not Linux LCP interfaces). When configuring monitoring systems (Zabbix, LibreNMS, PRTG, Grafana, Cacti), interface names appear as VPP interface names.
SNMP State¶
Viewing SNMP Status¶
Syntax¶
Displays the state of the snmpd service and vpp-snmp-agent, and when enabled, the listening address and port (UDP 161).
Enabling SNMP¶
Syntax¶
Disabling SNMP¶
SNMP Configuration¶
Community String¶
Syntax¶
Sets the SNMPv2c community string for read-only access.
| Parameter | Description | Default |
|---|---|---|
string | Community string | public |
Example¶
System Location¶
Syntax¶
Sets the sysLocation MIB value for device identification.
Example¶
System Contact¶
Syntax¶
Sets the sysContact MIB value for administrative contact information.
Example¶
Viewing Configuration¶
SNMP Configuration Display¶
Syntax¶
Displays the active SNMP configuration including community strings and system contact.
SNMP Statistics¶
Viewing SNMP Counters¶
Syntax¶
Displays SNMP protocol counters including incoming/outgoing packet counts, bad community name attempts, GetNext requests, and GetResponse packets sent.
Key Statistics¶
| Counter | Description |
|---|---|
| snmpInPkts | Total incoming SNMP packets |
| snmpOutPkts | Total outgoing SNMP packets |
| snmpInBadCommunityNames | Requests with incorrect community |
| snmpInGetNexts | SNMP GetNext requests |
| snmpOutGetResponses | SNMP GetResponse packets sent |
Services Overview¶
View all services including SNMP:
Displays status and configuration for all active services (SSH and SNMP).
Command Reference¶
| Command | Description |
|---|---|
set service snmp enable | Enable SNMP agent |
set service snmp disable | Disable SNMP agent |
set service snmp community <str> | Set community string |
set service snmp location <str> | Set system location |
set service snmp contact <str> | Set system contact |
show service snmp | Display SNMP status |
show service snmp config | Display SNMP configuration |
show service snmp statistics | Display SNMP counters |
show service | Display all services |
Integration with Monitoring Systems¶
When configuring monitoring platforms:
- Protocol: SNMPv2c
- Port: UDP 161
- Community: As configured (default:
public) - Interface Names: VPP format (e.g.,
GE12/0/0)
Supported Platforms¶
- Zabbix
- LibreNMS
- PRTG
- Grafana
- Cacti
- Other SNMP-compatible monitoring solutions
Best Practices¶
- Change default community - Never use
publicin production - Use firewall rules - Restrict SNMP access to monitoring servers
- Set location and contact - Helpful for inventory and alerting
- Monitor statistics - Check
snmpInBadCommunityNamesfor unauthorized access attempts