Forum Discussion

Gorf_112484's avatar
Gorf_112484
Icon for Nimbostratus rankNimbostratus
Oct 13, 2010

little confusion on trying to get snmp working for some mrtg graphs

I've already started some talk with Support, but in the mean time I thought I would reach out to the community in hopes that my problems are PEBKAC in nature and someone could set me on the straight and narrow.

I've got SNMP working on my LTM1600 cluster, but for some reason I am having a heck of a time getting the counters that I want.

On the local LTM itself I can run this command all day long:

snmpwalk -v2c -c wm-prod-lb-ro localhost ltmVirtualServStatClientBytesIn.\"my_vip_name\"

and I get the counters that I expect. But if I do it from a remote location:

snmpwalk -v2c -c wm-prod-lb-ro lb1manage ltmVirtualServStatClientBytesIn.\"my_vip_name\"
ltmVirtualServStatClientBytesIn."my_vip_name": Unknown Object Identifier (Sub-id not found: (top) -> ltmVirtualServStatClientBytesIn)

This is all after reading the configuration and managment doc in the KB for my version (9.4.7) in chapter 15 on setting up SNMP. I think I am missing something to do with the MIB files that you download from within the GUI on the LTM. Am I suppose to do something with them? Do they cause snmpwalk to recognize the "ltmVirtualServStatClientBytesIn"? My remote client is CentOS so I have net-snmp and mrtg installed out of Yum.

If anyone has any thoughts on this, it would be greatly appreciated.

Thanks!

4 Replies

  • Hi Gorf,

     

     

    Your post was corrupted. Can you try replying with the commands in [ code ] [/ code ] blocks (without the spaces)?

     

     

    Thanks, Aaron
  • Oops that was odd. Ok updated with the bbcode block. Something about my browser not being able to paste rich text format? LOL well fixed now...

     

     

    That second error that you see definitely coming from snmpwalk. If I do a tcpdump on the LTM, I don't get anything across the wire. That's what leads me to believe that I'm missing a step in getting this working.

     

  • Ok I resolved the first issue. The problem was that my client, by default, did not include a pre-configured snmp.conf file in /etc/snmp. I create it and added just the two lines:

    mibdirs /usr/share/snmp/mibs
    mibs +ALL

    That causes snmp to recognize the F5 files.

    Ok, so then I run this command:

    snmpget -On -v2c -c wm-prod-lb-ro 10.1.0.5 ltmVirtualServStatClientBytesOut.\"my_vip\"

    which with the -O returns the OID. But now I am stuck trying to get the OID to be recognized by mrtg. This Target line:

    Target[forum]: ltmVirtualServStatClientBytesOut.my_vip&ltmVirtualServStatClientBytesIn.my_vip:wm-prod-lb-ro@10.1.0.5:

    don'te work. And neither does using the OID's.

    help?

  • Can you try any of these:

     

     

    snmpwalk -v2c -c wm-prod-lb-ro lb1manage .1.3.6.1.4.1.3375.2.2.10.2.3.1.7.\"my_vip_name\"

     

    snmpwalk -m ALL -v2c -c wm-prod-lb-ro lb1manage ltmVirtualServStatClientBytesIn.\"my_vip_name\"

     

     

    Make sure you put the MIB files at the right location. If you can, send us output from:

     

     

    ls -l /usr/share/snmp/mibs | grep F5