Project

General

Profile

Bug #10815

FRR with SNMP AgentX option failed to start

Added by Viktor Gurov about 2 months ago. Updated 10 days ago.

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

100%

Estimated time:
Affected Version:
2.4.5-p1
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

Associated revisions

Revision 18208c61 (diff)
Added by Viktor Gurov about 2 months ago

FRR SNMP module. Fixes #10815

History

#1 Updated by Viktor Gurov about 2 months ago

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

#2 Updated by Jim Pingle about 2 months ago

  • Status changed from New to Pull Request Review

#3 Updated by Renato Botelho about 1 month ago

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

PR has been merged. Thanks!

#4 Updated by Alhusein Zawi 11 days 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

#5 Updated by Viktor Gurov 10 days 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

Also available in: Atom PDF