Project

General

Profile

Actions

Bug #10815

closed

FRR with SNMP AgentX option failed to start

Added by Viktor Gurov over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
FRR
Target version:
-
Start date:
08/04/2020
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
2.4.5-p1
Affected Plus Version:
Affected Architecture:

Description

https://forum.netgate.com/topic/155795/frr-0-6-7_3-enable-snmp-agentx

frr for pfSense 2.4.5-p1 doesn't have snmp module:

# /usr/local/sbin/zebra -d -f /var/etc/frr/zebra.conf -M snmp
loading module "snmp" failed: Shared object "snmp" not found, required by "zebra" 
# pkg info -l frr7 | grep snmp

but it's OK on 2.5:

# pkg info -l frr7 | grep snmp
    /usr/local/lib/frr/modules/bgpd_snmp.so
    /usr/local/lib/frr/modules/ospf6d_snmp.so
    /usr/local/lib/frr/modules/ospfd_snmp.so
    /usr/local/lib/frr/modules/ripd_snmp.so
    /usr/local/lib/frr/modules/zebra_snmp.so
    /usr/local/lib/libfrrsnmp.a
    /usr/local/lib/libfrrsnmp.so
    /usr/local/lib/libfrrsnmp.so.0
    /usr/local/lib/libfrrsnmp.so.0.0.0

Actions #1

Updated by Viktor Gurov over 3 years ago

FRR SNMP module for 2.4.5 branch:
https://github.com/pfsense/pfsense/pull/4418

Actions #2

Updated by Jim Pingle over 3 years ago

  • Status changed from New to Pull Request Review
Actions #3

Updated by Renato Botelho over 3 years ago

  • Status changed from Pull Request Review to Feedback
  • % Done changed from 0 to 100

PR has been merged. Thanks!

Actions #4

Updated by Alhusein Zawi over 3 years ago

enabling agentx option made the system stuck and after 2 or 3 reboots system crashed.

agentx option enabled on Zebra Global Settings.
Vritualbox.
2.4.5-RELEASE-p1.
frr Ver. 0.6.7_5

Actions #5

Updated by Viktor Gurov over 3 years ago

  • Status changed from Feedback to Resolved

You need to uninstall/install (not reinstall or update!) current FRR package to get frr7 with compiled-in snmp feature

frr Ver. 0.6.7_5 works as expected on 2.4.5-p1:

[2.4.5-RELEASE][root@pf51.prox.int]/root: pkg info -l frr7 | grep snmp
    /usr/local/lib/frr/modules/bgpd_snmp.so
    /usr/local/lib/frr/modules/ospf6d_snmp.so
    /usr/local/lib/frr/modules/ospfd_snmp.so
    /usr/local/lib/frr/modules/ripd_snmp.so
    /usr/local/lib/frr/modules/zebra_snmp.so
    /usr/local/lib/libfrrsnmp.a
    /usr/local/lib/libfrrsnmp.so
    /usr/local/lib/libfrrsnmp.so.0
    /usr/local/lib/libfrrsnmp.so.0.0.0
[2.4.5-RELEASE][root@pf51.prox.int]/root: ps auxww | grep zebra
frr     10814  0.0  0.4   23288   8124  -  Ss   12:13     0:00.01 /usr/local/sbin/zebra -d -f /var/etc/frr/zebra.conf -M snmp
root     3031  0.0  0.0     416    316  0  R+   12:21     0:00.00 grep zebra

Actions #6

Updated by Alhusein Zawi over 3 years ago

uninstall/install FRR made agentx option working . ( No Crash)

agentx option enabled on Zebra Global Settings .
Vritualbox.
2.4.5-RELEASE-p1.
frr Ver. 0.6.7_6

Note: BGP status is slow.

Actions

Also available in: Atom PDF