Forum Discussion

IT_Support_5777's avatar
IT_Support_5777
Icon for Nimbostratus rankNimbostratus
Sep 22, 2009

Bandwidth usage per URL

Good afternoon,

 

 

I would like to be able to log the amount of bandwidth used by a URL in a set period of time. I have a functioning Cacti environment, although I have never gotten it to correctly receive/display the LTM data. The issue is this:

 

 

I have one VIP that handles many (500+) URLs. I would like to be able to know how many connections and bandwidth utilization for each URL serviced by the VIP.

 

 

Is this possible? Any assistance is greatly appreciated.

 

 

Thank you.

 

 

TK

 

  • Hi TK,

     

    Unfortunately this is not going to be an easy answer.

     

     

    In regards of bandwidth. The LTM doesn't really have a good way to track bandwidth to each URL based on a single VIP. I ran into this scenario back when I was running v4.x and into v9.x. My solution was to utilize the Cisco NAM 2 module which works on a Cisco 6509 and other routers. It can graph traffic to multiple websites hosted on a single vip via the host headers. It can also send reports in CSV and PDF via schedule or FTP. Unfortunatly it doesn't track connections.

     

     

    For connections tracking there are several irules within Devcentral that talk about creating a specific to track connections so search for it.

     

     

    I hope this helps

     

     

    CB

     

     

  • You could modify Nat's v10 http throttling iRule (Click here) to track bandwidth per URL using the IP::stats commands.

     

     

  • Hi Citizen_elah,

     

    I looked at NATs v10 and I can't seem to find a command or method that would measure the amount of bytes at any given time?

     

     

    CB

     

     

  • Okay I stand corrected. I did some more digging and saw that IP::STATS (Click here) can provide the necessary bytes-in/out statistics.

     

     

    Now I am all giddy cause I have some ideas on how to use this.

     

     

    CB
  • Here is one that Colin posted some time back

     

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/In_Depth_Traffic_Analysis_via_iRule.html

     

     

    CB

     

  • Posted By cmbhatt on 09/23/2009 6:13 PM

     

    Here is one that Colin posted some time back

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/In_Depth_Traffic_Analysis_via_iRule.html

     

    CB

     

     

     

     

    Thanks! There is a ton of information available in that bad boy.

     

     

    Now my next question concerns the amount of information and how I get that sent to syslog only? There will be *so much* information generated by this that I need to make sure it is logged on another box.

     

     

    I have a syslog server running and it is gathering data from my HA pair, but I haven't been able to find a method that logs to syslog only and not the local log.

     

     

    Thank you for your help!

     

     

    TK

     

  • That's an easy one. You can direct log from the iRule. Check out the syntax here:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/log.html Click here

     

     

  •  

    That's an easy one. You can direct log from the iRule. Check out the syntax here:

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/log.html Click here

     

     

     

    I am using version 9.3.1, so the syntax doesn't work for me.

     

    Is there a workaround?

     

    Thanks.
  • well...this may present a large amount of info to the local log. Let me find those on the system and get an idea of how much space it will take up.

     

     

    Thank you for your input.

     

     

    TK