Forum Discussion

Brian_Dantzig's avatar
Brian_Dantzig
Icon for Nimbostratus rankNimbostratus
Mar 02, 2010

Determine number of connections to pool member

I am trying to find the number of current connections to each member of a pool from an iRule. I am creating a custom status page and want to include this statistic. I'm running LTM 9.4.8.

 

 

I might be able to use a statistics profile and add when the member is selected but, subtracting as end of connection might be tricky.

 

 

I could also run a [b pool show] and parse the output but that is rather complicated. It seems there must be a better way.

1 Reply

  • Hi Brian,

     

     

    It should be possible to increment counters in a stats profile to track the connections. You'd increment the counter in SERVER_CONNECTED and decrement it in SERVER_CLOSED.

     

     

    However, I'm not sure it's worth trying to track the number of connections to each pool member in an iRule in order to make this data available for monitoring or reporting. It would probably be more efficient and scalable to use a remote host to poll for this type of info through SNMP (assuming it is available via SNMP?). Quite a few people use Cacti for this type of requirement. F5 recently published an implementation guide for using Cacti with BIG-IP:

     

     

    SOL11167 - Deploying the BIG-IP LTM with the Cacti Open Source Network Monitoring System

     

    https://support.f5.com/kb/en-us/solutions/public/11000/100/sol11167.html

     

     

    Another option might be to create a read only account and have people check the statistics page for pools.

     

     

    Aaron