Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    telegraf / some snmp not working after 22.05

    Scheduled Pinned Locked Moved SNMP
    1 Posts 1 Posters 2.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • kiokomanK
      kiokoman LAYER 8
      last edited by kiokoman

      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

      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
      Please do not use chat/PM to ask for help
      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.