Press "Enter" to skip to content

How to setup wget as an external HTTP health check

This is very easy, just add an additional “script”-definition to the target section like this:

bng# target 1 script "wget -q -O /dev/null -t 1 -T 2 http://www.BalanceNG.net",4,10

The option “-q” keeps wget quiet with no output, “-O /dev/null” ignores the contents received, “-t 1” specifies that the access is tried just once per call and “-T 2” specifies a timeout of 2 seconds.