Hello, I’m a bit new to F5s, and I’m trying to get some session metrics via SNMP.
I have not had any luck finding a global statistic for all my VS connections. The OIDs I have found on the net appear to not work. I have tried several different ones from vegan.net/mrtg and none of them seem to go at all. I wonder if they are outdated.
I have a pair of BigIPs running v10.2.1 software. I have been able to get some connection statistics for my virtual servers, so I know SNMP is responding as I would think.
Hi. I used snmpwalk on the LTM to look for virtual stats. You need to make sure localhost is enabled in your snmp configuration. It usually is by defauilt.
snmpwalk -v 2c -c public localhost F5-BIGIP-LOCAL-MIB::ltmVirtualServStat
If you want to start with an OID number, you can try this:
snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.3375.2.2.10.2.3.1
Note that the virtual server names use quotes. I beleive they are contained in a table. To snmget a specific virtual, you would need to use the OID number or escape the quotes.
snmpget -v 2c -c public localhost F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientPktsIn.\“mtest\”
probably hundreds of them referencing all of the F5 MIB files.
some quick googling says that its likely the MIB files are in the wrong syntaxjust a quick question. is MIB that has been imported to NMS really correct e.g. version?
I dont have direct access to the F5 as it is hosted. I am trying to setup MRTG to run from an Ubuntu install I have. MRTG is running for all my other devices, which is why I was trying to check SNMP directly.
I was able to
snmpwalk -v 2c -c public .1.3.6.1.4.1.3375.2.2.10.2.3.1 and it returned a bunch of the errors followed by a bunch of OID entries…
Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2BitsPerSecIn ::= { gtmServerStat2Entry 6 }
Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2BitsPerSecOut ::= { gtmServerStat2Entry 7 }
Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2PktsPerSecIn ::= { gtmServerStat2Entry 8 }
Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2PktsPerSecOut ::= { gtmServerStat2Entry 9 }
Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2Connections ::= { gtmServerStat2Entry 10 }
Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2ConnRate ::= { gtmServerStat2Entry 11 }
I should have caught that in the beginning. F5-BIGIP-GLOBAL-MIB refers to Global Traffic Manager. If you do not have this enabled, I doubt you would get valid data. F5-BIGIP-LOCAL-MIB is for LTM.
you did snmpwalk against .1.3.6.1.4.1.3375.2.2.10.2.3.1 OID which is LTM’s OID but the error said soemthing about GTM’s OID. i think there is something wrong on the NMS. is it possible to re-import or re-load MIB? or is there any setting which might be incorrect there?
I was able to get the hosting provider to give me a new download of all the MIB files stored on the F5. With the new batch my snmp appears to be working now and I’m able to get the stats I need.