No Such Object available on this agent at this OID



  • Hello,

    I'm trying to set SNMP up for our pfsense. I have watched the "Monitoring pfSense 2.4 with SNMP" video which helped me to set things up on pfsense side.

    However, I'm having trouble getting data from snmp, I can't match things with the video correctly. There's no information on the video about the steps below, I couldn't find a document explaining what needs to be done, so what I did was guesswork.

    1. I have downloaded mibs from both:

    http://files.pfsense.org/jimp/mibs/
    http://files.pfsense.org/misc/mibs/

    1. /jimp/mibs/ is from 2015 so I've moved those into other one and overwritten the old ones.
    2. Removed .txt from the files.
    3. Moved all files
    4. Edited the /etc/snmp/snmp.conf , it looks like that at the moment:
    mibs +ALL
    mibdirs +/var/lib/snmp/mibs/iana:/var/lib/snmp/mibs/ietf:/var/lib/snmp/mibs/pfsense
    
    1. Running the following command:
    snmpget -On -M +/var/lib/snmp/mibs/pfsense -v2c -c public 10.1.1.1 BEGEMOT-PF-MIB::pfStatusRunning.0
    
    1. This command returns:
    .1.3.6.1.4.1.12325.1.200.1.1.1.0 = No Such Object available on this agent at this OID
    

    when I do snmpwalk like that:

    snmpwalk -v2c -c public 10.1.1.1
    

    I receive a long list of items, last part is like:

    SCTP-MIB::sctpInSCTPPacks.0 = Counter64: 0
    SCTP-MIB::sctpDiscontinuityTime.0 = Timeticks: (0) 0:00:00.00
    SCTP-MIB::sctpRtoAlgorithm.0 = INTEGER: 0
    SCTP-MIB::sctpRtoMin.0 = Gauge32: 0 milliseconds
    SCTP-MIB::sctpRtoMax.0 = Gauge32: 0 milliseconds
    SCTP-MIB::sctpRtoInitial.0 = Gauge32: 0 milliseconds
    SCTP-MIB::sctpMaxAssocs.0 = INTEGER: 0
    SCTP-MIB::sctpValCookieLife.0 = Gauge32: 0 milliseconds
    SCTP-MIB::sctpMaxInitRetr.0 = Gauge32: 0
    

    Can anyone please advise, I have no idea what I'm doing, I can't really troubleshoot something I can't quite understand.


  • Rebel Alliance Developer Netgate

    Are you using the built-in SNMP (bsnmpd) or the NET-SNMP add-on package?

    The NET-SNMP package wouldn't have the PF data available, so those MIBs won't be relevant.

    Also the most current copies of the MIBs are on your firewall already under /usr/share/snmp/mibs/ and /usr/local/share/snmp/mibs/



  • @jimp

    Hello,

    Thank you for your reply. I'm using NET-SNMP. I couldn't get BEGEMOT-PF-MIB::pfStatusRunning.0 to work, although I managed to get all other stuff (CPU, MEM, State table size) work.

    Thank you.


  • Rebel Alliance Developer Netgate

    That MIB won't work because you are using NET-SNMP. The PF MIBs only work with bsnmpd, but bsnmpd doesn't have all the features and robustness of NET-SNMP.



  • @jimp

    Thank you for the information, state table size is important to us so this is why I decided using NET-SNMP over the other one, which works great. Only it was a little pain to set up on the datadog side.

    All resolved :)


  • Rebel Alliance Developer Netgate

    You can use custom commands in NET-SNMP to get that info if you decide to switch back.

    While you can't drop this into NET-SNMP directly, you could use a command like this on a custom exec to poll it remotely:

    pfctl -si | grep -A1 'State Table' | tail -1 | awk '{print $3;}'
    

Log in to reply