Forum Discussion

Techgeeeg_28888's avatar
Techgeeeg_28888
Icon for Nimbostratus rankNimbostratus
Aug 22, 2013

Monitor for Internet links

Hi Everyone, I want to create a monitor that should get the www.google.com page to make sure the internet links are up. May be there are some previous post on the same topic can someone refer that again pls.

 

Regards,

 

4 Replies

  • Well, technically speaking you could make a minor adjustment to the BASH-based sample_monitor in /config/monitors:

    curl -fNs http://www.google.com |grep -s "Search the world's information" > /dev/null
    

    and assign that to a "dummy" pool, but then I suppose the bigger question is what you want to do with this information. It may make more sense to establish a VLAN failsafe. What are you trying to accomplish?

  • just wondering if destination ip is static (or using number of health monitors with OR operator), can HTTP monitor with specific alias address and service port be useful?

     

  • Thanks Kevin What I want is a simple thing like when we have a http monitor that should get the outlook page from exchange and if it gets one and the reply has a word "outlook" in the first 200 lines tht makrs the pool member as up. Similarly I want to create a http monitor that should get the www.google.com or www.yahoo.com or www.microsoft.com and if the monitor assigned to the pool of links is successful that member should be marked as up.

     

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    You're monitoring a proxy then.

    I have a few of those. They're quite simple. For example the google monitor is just

    ltm monitor http proxy-google.co.uk {
        defaults-from http
        destination *:*
        interval 20
        recv "Server: gws"
        recv-disable "The page cannot be displayed"
        send "GET http://www.google.co.uk/ HTTP/1.0\\r\\n\\r\\n"
        time-until-up 0
        timeout 61
    }
    

    H