SNMP Pools

I’m trying to probe the status of a pool via SNMP and not translating the whole pool name into an OID as doing that for each and every pool is not efficient.

On the F5 I can run the following command: snmpwalk -v2c -c public localhost F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState.\“/Common/Pool1\” Returned: F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState.“/Common/Pool1” = INTEGER: green(1)

Now to test without the MIB: snmpwalk -v2c -c public localhost 1.3.6.1.4.1.3375.2.2.5.5.2.1.2.\“/Common/Pool1\” Returned: F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState.“/Common/Pool1” = INTEGER: green(1)

However, if I SNMP walk the device outside of the F5 with Nagios or Solarwinds SNMP walk tool 1.3.6.1.4.1.3375.2.2.5.5.2.1.2.\“/Common/Pool1\” neither program returns anything. Is there a better way to probe it outside the F5 without converting “/Common/Pool1” to an OID/decimal format?

Greetings,

Did you allow access to the snmpv2c agent?

tmsh modify sys snmp snmpv2c { allowed-addresses add { 10.10.10.0/24 }

tmsh list sys snmp snmpv2c allowed-addresses
sys snmp {
    allowed-addresses { 127.0.0.0/8 10.12.23.0/24 10.10.10.0/24 }
    snmpv2c {
}

Kevin

Yes, SNMPv2 and SNMPv3 work just fine. I can SNMP walk via OID “1.3.6.1.4.1.3375.2.2.5.5.2.1.2” in both Nagios and SolarWinds SNMPWalk tool. This gives me the results for all the pools. I can go even a step further and grab the whole OID for a single pool from that walk and scan for that OID for that as well. But the moment I throw in the name of the pool instead of an OID, I get no results back.

I’m testing from a remote linux server, using the command you provided above. When all of the F5 MIBs are in the proper third party mib directory, the reponse is successful:

snmpwalk -v2c -c public 10.12.23.120 F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState.\"/Common/Pool1\"
F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState."/Common/Pool1" = INTEGER: red(3)

Move the F5 MIBs away , and of course it fails:

snmpwalk -v2c -c public 10.12.23.120 F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState.\"/Common/Pool1\"
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (F5-BIGIP-LOCAL-MIB): At line 0 in (none)
F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState."/Common/Pool1": Unknown Object Identifier

snmpwalk -v2c -c public 10.12.23.120 1.3.6.1.4.1.3375.2.2.5.5.2.1.2.13.47.67.111.109.109.111.110.47.80.111.111.108.49
iso.3.6.1.4.1.3375.2.2.5.5.2.1.2.13.47.67.111.109.109.111.110.47.80.111.111.108.49 = INTEGER: 3

So, I believe the query itself will work from a remote SNMP management station, it is just a matter of how the station is formatting the request. Are you able to:

1) Check any of the logs on the SNMP station to see if any errors are being thrown? 2) Get a packet capture on the BIG-IP system to see what the SNMP query looks like?

Sorry I don’t have more info on this,

Kevin

Ok that is good info, thanks Kevin.

I wasn’t sure if \“/Common/Pool1\” part actually required the MIB or not. I was trying to cut off the MIB requirement by doing:

1.3.6.1.4.1.3375.2.2.5.5.2.1.2.\"/Common/Pool1\" Of course the SolarWinds SNMP walk tool isn't using the MIB and my installation of Nagios is having issues using the MIB. I will push forward trying to get that fixed first before moving forward.

I’ll update this if this solves my issue. Thanks again!

Sounds good, we’d like to hear out it turns out =)

Good luck and thanks!

Thanks for the help Kevin. With your help I was able to confirm my syntax in Nagios was not working as expected.

Below is what I did in Nagios and the steps I did to get things to work.

Use Nagios SNMP walk and use OID F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState This will confirm the MIBs are working correctly and should display all the Pools states. Nagios will try to format sytanx it expects to work but it will not. Here is what Nagios code that they will try to use if you follow this process: check_xi_service_snmp -p 161 -o ltmPoolStatusAvailState.“/Common/Pool1” -C public -P 2c -m F5-BIGIP-LOCAL-MIB -w 3 -c 2 As you can tell, it isn’t using any “\” I believe these are used to terminate the word or something. You could still proceed with this incorrect error and then edit the service command to include the “\” where needed: check_xi_service_snmp! -p 161 -o ltmPoolStatusAvailState.\“/Common/Pool1\” -C public -P 2c -m F5-BIGIP-LOCAL-MIB -w 3 -c 2

The other option is to use the wizard for SNMP and not SNMPWalk. If you use that option your OID is ltmPoolStatusAvailState.\“/Common/Pool1\” and MIB is F5-BIGIP-LOCAL-MIB

Greetings,

Thanks for the detailed follow up. I know Nagios is very popular, someone else will eventually experience this.

Double quotes in the shell can get tricky, so it seems best to always escape them unless using a variable:

POOL1=\"/Common/Pool1\"

snmpwalk -v2c -c public 10.12.23.120 F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState."$POOL1"
F5-BIGIP-LOCAL-MIB::ltmPoolStatusAvailState."/Common/Pool1" = INTEGER: red(3)

Thanks again for the follow up and glad this is solved for you!

Kevin