telegraf / some snmp not working after 22.05
-
i had this problem today, after upgrade from 22.02 to 22.05, it was working previusly.
[telegraf] Error running agent: could not initialize input inputs.snmp: initializing table interface: translating: cannot make BEGEMOT-PF-MIB::pfInterfacesIfTable numeric, please ensure all imported mibs are in the path [telegraf] Error running agent: could not initialize input inputs.snmp: initializing field uptime: translating: Could not find module named RFC1213-MIB [22.05-RELEASE][root@pfSense.kiokoman.home]/usr/local/share/snmp/mibs: snmpget -v2c -c ####### 127.0.0.1 RFC1213-MIB::sysUpTime.0 /usr/local/share/snmp/mibs/mibs: No such file or directory DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (206314) 0:34:23.14
not working anymore ->>
[[inputs.snmp.field]] oid = "RFC1213-MIB::sysUpTime.0" name = "uptime" [[inputs.snmp.field]] oid = "RFC1213-MIB::sysName.0" name = "source" is_tag = true [[inputs.snmp.table]] oid = "BEGEMOT-PF-MIB::pfInterfacesIfTable" name = "interface"
solution:
[[inputs.snmp]] agents = ["udp://127.0.0.1:161"] path = ["/usr/local/share/snmp/mibs"] #<----- add this timeout = "5s" community = "#########" retries = 3 max_repetitions = 10
2022-08-15T15:00:46Z W! [inputs.snmp] Couldn't stat target /usr/local/share/snmp/mibs/mibs panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x29dac3d]
delete mibs link, if it does not exist, pointing to ./root/.snmp/mibs
rm /usr/local/share/snmp/mibs/mibs
done
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.