Forum Discussion

crt_okan_385853's avatar
crt_okan_385853
Icon for Nimbostratus rankNimbostratus
Mar 13, 2019

i-rule question

Hi all,

 

 

This service works with "http get" and it returns values. How can I get this values in my i-rule? So I can make decisions for making the server offline or not.

 

It returns this value;

 

WORKING_OK

 

2 Replies

  • Hi

     

    1 - If you are just trying to check if a POOL member is down, no need to use iRule, just use a monitor. 2 - If you are in a more complex environment you may use HSSR iRule to do s SideBand request and check the payload

     

    But you need to precise a bit more what you are trying to achieve.

     

    Sincerely

     

  • In my opinion, the easiest way to check this, whether the resource you want to check is the destination address or not, is to create a pool with a pool member at that IP address. Then, configure an advanced health check monitor to mark that pool member up if it returns "OK" and down if it returns anything else. You can check this pool member in an iRule if you need to and then do whatever you need to based on the status of the pool member.

     

    If you need assistance with the configuration or any more questions, I am sure I can help.