Forum Discussion
SNMP Pools
- Oct 17, 2017
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
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
- BigD_300005Oct 18, 2017Cirrostratus
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.
- Kevin_K_51432Oct 18, 2017Historic F5 Account
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
- BigD_300005Oct 19, 2017Cirrostratus
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!
- Kevin_K_51432Oct 19, 2017Historic F5 Account
Sounds good, we'd like to hear out it turns out =)
Good luck and thanks!
- BigD_300005Oct 20, 2017Cirrostratus
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
- Kevin_K_51432Oct 20, 2017Historic F5 Account
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
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com