Forum Discussion

uisomdc_95191's avatar
uisomdc_95191
Icon for Nimbostratus rankNimbostratus
Aug 04, 2008

website up/down check

greetings and such. I've been tasked with coming up with a solution to our monitoring issues.

 

 

I need to produce a single webpage with all of our Pools/nodes(50+)to let unprivileged users know whether or not a site is up. Its going to be a simple thing, "green light" for the site being up, and a "red light" for the site being down.

 

 

So from my reading here, I forsee myself using an apache to host, pycontrol, and interpreted HTML within some python code along with icontrol to get this all done.

 

 

Can someone let me know if there's something like this already in the wild so I don't have to reinvent the wheel? Or just point me in the right direction for which functions to start using in pycontrol?

 

 

if i do have to make the wheel, i'll be sure to post it here.
  • James_Quinby_46's avatar
    James_Quinby_46
    Historic F5 Account
    I was just looking at something similar - there's a short-and-sweet pyControl script for polling pool status which ought to get you going in the right direction.

     

     

    Take a look at:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iControl/pyControlQuickPoolStatus.html

     

     

    My gotchas for installing pyControl were needing to grab the python setup tools for my linux distro (in order to install the egg files).

     

     

    Also, I ended up using the ubuntu-packaged ZSI rather than the one on SF.
  • ahh cool! yeah i was already working with that code yesterday and today. Next step for me is to query nodes in each pool for up/down status then i'm done with the f5 side.

     

     

    Happy to hear someone got it working in linux, i'm going to be doing the same once i get the node thing done.