Subject: Rare project developers
List archive
- From: Alexander Gall <>
- To: Frédéric LOUI <>
- Cc: mc36 <>, "" <>
- Subject: Re: [rare-dev] Broken SNMP in latest forwarder code
- Date: Fri, 11 Feb 2022 18:44:48 +0100
On Fri, 11 Feb 2022 18:27:20 +0100, Frédéric LOUI <>
said:
>> SNMP in the latest code (95739f) is broken:
> Yes, it still needs some adjustments.
>> Speaking of SNMP, can you please explain (again) the problem that
>> occured with NMaaS and SNMP queries?
> I used LibreNMS real time graph, that started polling at shorter interval.
> After 3 hours, Linux crashed.
> I had to reboot it via BMC
It would be good if you could repeat this and try to check on the host
if you can see any sign of a problem before it crashes. Since SNMP
Queries do not interact directly with the Python code, the problem
can really only occur either in the snmp daemon or the Perl code that
implements the AgentX module. Maybe it's a memeory leak that only
occurs at high query rates.
According to csaba's response it seems that we need to keep this code
for now in order to be able to supply complete ifTable and ifXTable
MIBs.
--
Alex
>> @csaba: If freerouter now has SNMP support built in (that was news to
>> me), how exactly does it work?
> If this works in freeRtr, I’d rather adapt the code in order to fill
> freeRtr SNMP counters.
> But IIRC, we had Alex SNMP dev because it was not available. But indeed it
> was 2 years ago ...
> I’ve to finish exposing counters to freeRtr, but once I finished I’ll tacle
> SNMP.
> It would be great iin which direction I would have to go in that moment.
> Thanks !
> Frederic
>> Le 11 févr. 2022 à 18:09, Alexander Gall <> a écrit :
>>
>> Hi Frederic
>>
>> SNMP in the latest code (95739f) is broken:
>>
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: BfIfSnmpClient - main
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: bf_switchd started with
>> SNMP export
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: Generic table clearing:
>> (Order not matters)
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: Exception in thread
>> bf_snmp:
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: Traceback (most recent
>> call last):
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: File
>> "/nix/store/bvz1i8rik3ynd1rpb8gczwqfayxv4dfz-bf_forwarder-22.02.11/lib/python3.8/site-packages/rare/bf_snmp_client/__init__.py",
>> line 35, in run
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: self.active_subifs =
>> self.getAllActiveSubInterfaces()
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: File
>> "/nix/store/bvz1i8rik3ynd1rpb8gczwqfayxv4dfz-bf_forwarder-22.02.11/lib/python3.8/site-packages/rare/bf_snmp_client/__init__.py",
>> line 297, in getAllActiveSubInterfaces
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: tbl_global_path =
>> "%s.ig_ctl" % self.pipe_name
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: AttributeError:
>> 'BfIfSnmpClient' object has no attribute 'pipe_name'
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: During handling of the
>> above exception, another exception occurred:
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: Traceback (most recent
>> call last):
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: File
>> "/nix/store/v72cj06nk69cynckz2s12rhar25k1h7v-python3-3.8.5/lib/python3.8/threading.py",
>> line 932, in _bootstrap_inner
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: self.run()
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: File
>> "/nix/store/bvz1i8rik3ynd1rpb8gczwqfayxv4dfz-bf_forwarder-22.02.11/lib/python3.8/site-packages/rare/bf_snmp_client/__init__.py",
>> line 80, in run
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: "%s - exited with
>> code [%s]" % (self.class_name, _Exception())
>> Feb 11 17:52:11 spare-PB1 start_bffwd.sh[12143]: NameError: name
>> '_Exception' is not defined
>>
>> Speaking of SNMP, can you please explain (again) the problem that
>> occured with NMaaS and SNMP queries?
>>
>> @csaba: If freerouter now has SNMP support built in (that was news to
>> me), how exactly does it work?
>>
>> --
>> Alex
- [rare-dev] Broken SNMP in latest forwarder code, Alexander Gall, 02/11/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, Frédéric LOUI, 02/11/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, mc36, 02/11/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, Alexander Gall, 02/11/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, Frédéric LOUI, 02/11/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, mc36, 02/11/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, Frédéric LOUI, 02/18/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, Alexander Gall, 02/21/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, Frédéric LOUI, 02/21/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, Alexander Gall, 02/21/2022
- Re: [rare-dev] Broken SNMP in latest forwarder code, Frédéric LOUI, 02/11/2022
Archive powered by MHonArc 2.6.19.