An open API service indexing awesome lists of open source software.

https://github.com/subuk/bird2snmp

SNMP AgentX client to expose bird metrics
https://github.com/subuk/bird2snmp

agentx bgp bird snmp

Last synced: 5 months ago
JSON representation

SNMP AgentX client to expose bird metrics

Awesome Lists containing this project

README

          

# 🦅 Bird2 SNMP Agent

[![Go Report Card](https://goreportcard.com/badge/github.com/subuk/bird2snmp)](https://goreportcard.com/report/github.com/subuk/bird2snmp)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Go Version](https://img.shields.io/badge/go-1.21+-00ADD8.svg)](https://golang.org/dl/)

A lightweight SNMP AgentX implementation for monitoring BIRD routing daemon through SNMP. This agent provides real-time monitoring of BGP peers and their states using the standard BGP4-MIB.

## ✨ Features

- 🚀 Real-time BGP peer monitoring
- 📊 SNMP AgentX protocol support
- 🔄 Automatic data refresh
- 🛠️ IPv4 BGP peer support
- 📈 Standard BGP4-MIB compliance

### Supported OIDs

| OID | Description |
|-----|-------------|
| bgpLocalAs | Local Autonomous System number |
| bgpPeerState | Current state of BGP peer |
| bgpPeerRemoteAddr | Remote peer IP address |
| bgpPeerFsmEstablishedTime | Time since BGP session establishment |
| bgpIdentifier | BGP router identifier |

## 🚀 Installation

### Prerequisites

- BIRD2 configured with BGP peers
- net-snmpd installed and configured

### Quick Start

1. Install net-snmpd:
```bash
opkg install snmpd snmp-mibs
```

2. Configure net-snmpd:
```bash
cat > /opt/etc/snmp/snmpd.conf < /opt/etc/init.d/S81bird2snmp <