Forum Discussion

JoeBlogs1759_10's avatar
JoeBlogs1759_10
Icon for Nimbostratus rankNimbostratus
Aug 14, 2009

iRule to update an independent web page

Has anyone written an iRule to update a web page of its status or does anyone know of a better method. The requirement is for the helpdesk; who don’t have F5 access to be updated (other than SMTP) of the status of the pool members. Thanks…

4 Replies

  • Sounds like a job for our Managment API iControl. We have many customers who have written monitoring systems using our iControl API to build a status dashboard for the health of their systems. That would require coding the iControl calls into your webpage. Since you said that the helpdesk doesn't have F5 access, so I take that to mean that they do not have the ability to remotely query data from the BIG-IP so this might not work for you. Not sure how you'd do this with iRules... Anyone?

     

     

    -Joe
  • Just brain storming here...you could serve the page locally on the BIG-IP with a unique URI such as /memberStatus. As your pool members are used, you could check their status in the LB_SELECTED event with LB::status, then store member IP:port and status in an array that you could iterate through for a page display with HTTP::respond. It won't be exactly real time, and will depend on all your pool members being utilized, but it's a start.
  • Hi citizen_elah

     

    I'm still very new at iRules, would you have something I could work with to get started. I'm willing to modify/hack it but I really need something to get started with...?
  • Here are several irules regarding pool status

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/Pool_Member_Status_Page_on_a_Virtual_Server.html

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/Pool__Member__Status__Page_on_a__Virtual__Server_v10.html

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/Current_Pool_Member_status.html

     

     

    Hope this helps

     

     

    Bhattman