Forum Discussion

Fereda_187281's avatar
Fereda_187281
Icon for Nimbostratus rankNimbostratus
May 02, 2016

File Monitor

Hello all;

 

I need a monitor maybe you know.But i don't remember the how. I have a vıp nad a pool that has got 2 nodes. I create a custom monitor on the nodes.Nodes are Windows Server. My monitor check a txt file on each servers.That txt file in the for example "\server1\d\f5mon\f5mon.txt" . So The txt file include "0 or 1 ". When i get 1 my custom mon is up.When a server admin change the txt file to 0 (zero), my F5 monitor down and F5 does not push the traffic.

 

So What is the monitor parameters? Do you have any ideas? Thank you for any help.

 

Regards. Ferhatde

 

2 Replies

  • 1) The txt file must actually be hosted in web-server directory, and not just 'located somewhere in the server', I mention that because you used

    \
    instead of
    /
    when mentioning your txt file location. Even when using Windows Server, the HTTP paths (directories) at the client-facing front-end are distinguished by
    /

    2) First check if the txt file opens directly in HTTP response body at
    http://web-server-ip/server1/d/f5mon/f5mon.txt
    . If yes, something like this may work:
    ltm monitor http mon_http_custom {
        defaults-from http
        destination *:*
        interval 5
        ip-dscp 0
        recv 1
        recv-disable 0
        send "GET /server1/d/f5mon/f5mon.txt HTTP/1.1\r\n"
        time-until-up 0
        timeout 16
    }
    

    Regards,