Forum Discussion

nik_65678's avatar
nik_65678
Icon for Nimbostratus rankNimbostratus
Mar 26, 2010

snmp - one ip, two vips, two ports.. how to separate?

so i'm fairly new to messing with bigip+snmp and i've been banging my head against one particular issue. i've setup mrtg graphs for most of my vips but the one thing i have a problem with is when i have two vips using the same ip but different ports. i want to graph each of the two vips individually, is this possible? for example, here's what i'm using to graph right now:

 

 

BYTES IN: .1.3.6.1.4.1.3375.2.2.10.11.3.1.4.1.4.xxx.xxx.xxx.xxx

 

BYTES OUT: .1.3.6.1.4.1.3375.2.2.10.11.3.1.6.1.4.xxx.xxx.xxx.xxx

 

 

now this is fine but not only do i not know which port this is for (or is it the total of both?), i also don't know how to separate each vip into two separate graphs. i've had very limited luck with the documentation and my knowledge of snmp is kinda shaky at best. any ideas? thanks in advance!

7 Replies

  • The oid you're using is the Virtual Address, not the virtual. This will aggregate all stats with that IP. I think you want this one:

     
     [root@golgotha:Active] config  snmpwalk -v 2c -c public localhost ltmVirtualServStatClientBytesIn 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."cacti-vip" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."cpu_workout" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip1-ftp" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip1-ssh" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip2-ftp" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip2-ssh" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip1-http" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip2-http" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip1-https" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip2-https" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip1-telnet" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."testvip2-telnet" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."test1vip-longport" = Counter64: 0 
     F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."vs_10_10_20_5_53_gtm" = Counter64: 0 
      
     [root@golgotha:Active] config  snmptranslate -On F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn 
     .1.3.6.1.4.1.3375.2.2.10.2.3.1.7 
     [root@golgotha:Active] config  snmptranslate -On F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesOut 
     .1.3.6.1.4.1.3375.2.2.10.2.3.1.9 
     
  • that's perfect. you're right, i was using the ip and not the vip. here's what i used:

     
       snmpwalk -v 2c -c public localhost ltmVirtualServStatClientBytesIn  
      F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."TEST_VIP" = Counter64: 999  
        
       snmpwalk -c public -v2c localhost F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn.\"TEST_VIP\"  
      F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."TEST_VIP" = Counter64: 999  
        
       snmptranslate -On F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn.\"TEST_VIP\"  
      .1.3.6.1.4.1.3375.2.2.10.2.3.1.7.8.110.105.107.95.116.101.115.116 
     

    note that escaping the quotes is important. thanks again for the help!

  • No problem. Maybe it's not a reality in your environment, but I find a tool like Cacti cuts a bulk of the manual labor in setting up the virtuals over MRTG. Once the F5 template is in place, you can discover your interfaces, pools, and vips and avoid the manual process altogether.
  • yep, i want to start cacti soon. has f5 released cacti templates or are they community projects?
  • There is nothing official, only work that several here and in Cacti's forums have contributed. The latest template I've exported is here:

     

     

    http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/CactiF5HostTemplate.html Click here