Forum Discussion
royster_128009
Nimbostratus
Nov 03, 2003get_statistics ITCMLocalLB.Global.GlobalStatistic
Hi,
We'd like to use iControl to monitor (and later graph)
'GLOBAL_STATISTIC_CURRENT_CONNECTIONS'
I have the working LocalLBGlobal.pl script but cannot seem to get this
type and value returned correctly on its own from the get_statistics() part of the script.
Any help appreciated.
3 Replies
- royster_128009
Nimbostratus
basically I'd like GLOBAL_STATISTIC_CURRENT_CONNECTIONS' as a returned value on its own without requesting all the stats of get_statistics()
BIG-IP v4.5
thanks - Could you be a bit more specific on your issue? The call to get_statistics
[code:1:387d4b53dc]{ ... GLOBAL_STATISTIC_CURRENT_CONNECTIONS, /* value 35 */ ... }; struct GlobalStatistic { GlobalStatisticType type, long value }; void get_statistics( out GlobalStatistic[] global_stats );
returns a array of GlobalStatistic structures containing containing each type of statistic. Enumerating this array until you find one with the type of "35" should have an associated value of the current connections.
What exactly is the behavior you are seeing? Is a entry with type 35 being returned with an incorrect value? You mentioned that there was a problem with the type being returned correctly. If so, could you explain what this means?
Also, if you could include the version of BIG-IP you are accessing that would be helpful in diagnosing the problem if there is one.
-Joe - Currently the only way to get LocalLB global statistics is in a single bulk call and you will have to extract the metric from the array.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects