ewest111
Jul 17, 2015Nimbostratus
Help with iRule to redirect to maintenance page with pool is down
I am trying to configure a static page to display if all nodes in a pool go down. I have imported my code into an iFile and I have applied that file to the iRule. elow is my iRule code.
when HTTP_REQUEST { if {[active_members [LB::server pool]] < 1} {
HTTP::respond 200 content [ifile get "down_html"] } }
When I apply the iRule as a resource I get an error that states unable to find ifile(down_html) referenced at line 3: [ifile get "down_html"]
Any help would be greatly appreciated.