Steven_87308
Jan 14, 2011Nimbostratus
Stats Profile tutorial?
I am trying to capture one client's public IP's traffic: Current, Average, and Max bandwidth & connections. It looks like using StatsProfiles would be the way to go, but I'm stuck on the iRule. I've pored over Joe's article 66, but it's a bit steep for a guy who seldom does scripting. Is there a tutorial that maps the fields in the stats profile to an iRule?
TCPDump shows a LOT of traffic, but I want to trend it. Would it be easier to skip the iRule if I have InterMapper? (Five [probes] for Free!) It can do nice charting like Cacti, and can do SNMP readily. That is, is there an OID for the fields in StatsProfiles such that SNMP could pick up those stats?
Thus far my StatsProfile is named "ClientStats" and my fields are "CPS-Current, CPS-Av, CPS-Max, BWPS-Current, BWPS-Av, BWPS-MAX.
The things that throw me in Joe's66 are the "switch string to lower" (lower what?) and the reporting: once stats are gathered, does it show up in the gui automatically, or is it called as a named page in the gui?
But to the point, where's the incrementing done? Is it in the Http_Response? I could cull the timing/clock stuff, but the line STATS::incr looks crucial.
Where to begin? I've attached my feeble attempt thus far.
-Steve in SD