Forum Discussion
2 Replies
Sort By
This might work:
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] eq "/statuscheck2" && [active_members ] > 0 }{ HTTP::respond 200 content "" } else { HTTP::respond 500 content "" } }
Replace
andpool_name
with the correct values.your content
/Patrik
- Vijay_ECirrus
This is an untested, rough iRule that you have to alter to suit your needs:
when HTTP_REQUEST { if { [active_members WEB_POOL] < 1 } { HTTP::respond 500 Location "https://online.mydomain.org/statusCheck2" } elseif { [active_members WEB_POOL] > 0 } { HTTP::respond 200 Location "https://online.mydomain.org/statusCheck2" } }
You can probably use switch instead of if-else.