Forum Discussion
Reacting when stats cross specific threshold
I'm looking for a way to trigger a TMSH command just when a stat value cross a specific threshold.
For example, I'm searching for a way to execute "tmsh show sys connections" just in case active connections (F5-BIGIP-SYSTEM-MIB::sysStatClientCurConns.0) raise above XXXX connections. Because I'm having some frequently peaks which are not related to traffic passing through VS, and i would like to figure out what kind of connections are those.
At the beginning I was thinking to use iCalls, but the triggered condition is using custom alerts and i don't think this fits in my scenario.
How do you plan this scenario? any idea or examples?
Thanks in advance.
KR, Dario.
- Dario_Garrido
Noctilucent
The only way I found to monitor active sessions is to create a complete iRule monitoring: https://devcentral.f5.com/s/feed/0D51T00006i7MGlSAM
 
However, It's seems a very aggresive method (too much variables and processing), we would like to have less impact in our production enviroment.
 
I wonder if it's possible to get the current active connection statistic using something like this: https://clouddocs.f5.com/api/irules/STATS__get.html
 
Anyone knows how to do it?
 
An example of using will be also useful (with a default statistic, not custom)...
 
KR, Dario.
 
- amintej
Cirrus
Hello,
Maybe an easy way it is configuring connection limit or connection rate limit and configure snmp alert when the limit is reached looking for the log entry similar to:
Warning, connections equals limit 192.168.42.95:55587 -> 20.48.40.20:3306, proto TCP, VS /test/VS_GALERA_3306: Connection limit reached..
Be careful, because once the limit is reached new connections are rejected so my propose is configure connection limit in the pool member.
Recent Discussions
Related Content
* 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