Forum Discussion
How to do ltmPoolStatServerCurConns triggers a snmp trap?
Hi everybody,
I need to configure a trap which it triggers an alert when there are no connections in a pool or even when there are connections. I found an OID:
ltmPoolStatServerCurConns .1.3.6.1.4.1.3375.2.2.5.2.3.1.8
By executing the snmpwalk command to the specific pool I obtain:
snmpwalk -v2c -c public localhost .1.3.6.1.4.1.3375.2.2.5.2.3.1.8.17.47.67.111.109.109.111.110.47.104.116.116.112.95.112.111.111.108
F5-BIGIP-LOCAL-MIB::ltmPoolStatServerCurConns."/Common/http_pool" = Counter64: 5
where I can see 5 current connections and the same result is obtained by a GET command from a snmp tool. The following link talks about how configure traps identifying a trappable log event: https://devcentral.f5.com/articles/custom-snmp-traps but for this case I don't know how to do this event triggers an alert and so customize this specific trap in a alert.conf file.
Maybe you already has configured something similar and you want share your experience.
2 Replies
- eneR
Cirrostratus
So you always want to get a trap when the con counter is >0 ? Or do you just want to check it in a specific interval e.g every hour or every x minutes etc?
- Gabo_Medina_173
Nimbostratus
Hello,
The goal it would be when the trap be triggered in the moment when the counter be = 0 connections. But I think maybe it would be possible to configure a kind of iRule that it be checking each time period and when the result be ltmPoolStatServerCurConns = 0, this iRule generates an alert and we could create a customized trap.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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