Forum Discussion

Tomáš_D_193198's avatar
Tomáš_D_193198
Icon for Nimbostratus rankNimbostratus
Sep 06, 2017

Check status of pool member by iRule

Hello, I have fastL4 VIP with one member in a pool.

 

I want to check status of the member (up/down).

 

I tried to do it by this simple iRule and I got everytime status "down" but server is UP.

 

when CLIENT_ACCEPTED {

 

log local0. "test status pool member > [LB::status pool Test_pool member 10.0.202.198 80]"

 

}

 

BIGIP SW is 11.5.4

 

Do you have some idea why I always got status of member like "down" ?

 

Thanks Tomas

 

3 Replies

  • I just solved this trouble. I have more then one partition and in this case in this command must be IP of member with number of partition.

     

    Command must be: [LB::status pool Test_pool member 10.0.202.198%1 80]

     

  • Hi Tom, %1 is not for partitions but, route-domains. And moreover, the irule mentioned in the question is not 'monitoring' purpose. It is only meant to log the status. You must be having a monitor attached to your pool for monitoring purpose.

     

    • Tomáš_D_193198's avatar
      Tomáš_D_193198
      Icon for Nimbostratus rankNimbostratus

      Hello, yes you are right, it is number of Route Domain. My answer was not clear. I have of course monitor attached to pool.

       

      This rule was like test rule how this check is working and now I will use it in another iRule.

       

      Thank you