Forum Discussion

Tyler_Robinson_'s avatar
Tyler_Robinson_
Icon for Nimbostratus rankNimbostratus
Oct 02, 2006

Check availability of pool

What is used to check the availability status on a particular pool?

 

 

I want to know if a pool is available, but offline. Or if it is available, and online.

 

 

Thanks for any help

1 Reply

  • You can use the LocalLB::Pool::get_object_status() method.

    struct ObjectStatus {
      AvailabilityStatus availability_status;  The availability color status of the object.  
      EnabledStatus enabled_status;   The enabled status of the object.
      String status_description;  The textual description of the object's status.  
    };
    ObjectStatus[] LocalLB::Pool::get_object_status(
        in String[] pool_names
    );

    The enabled_status will tell you whether the pool is in the enabled or disabled state and teh availability_status will tell you the state of the active health monitors for the members in the pool.

    -Joe