summaryrefslogtreecommitdiff
path: root/src/lbtest.hh
AgeCommit message (Collapse)Author
2011-03-30check in for Bug 6959Michael Larson
Add the ability to run a user defined script to determine wan load-balancing interface health includes sample http test (scripts/http_test.pl). Configuration will look as follows: wan { interface-health eth0 { nexthop 10.3.0.1 test 1 { test-script /tmp/http_test.pl type user-defined } } interface-health eth1 { nexthop 10.3.0.1 test 1 { test-script /tmp/http_test.pl type user-defined } } With corresponding output: vyatta@vyatta# run show wan-load-balance Interface: eth0 Status: active Last Status Change: Wed Mar 30 19:03:59 2011 +Test: user Script: /tmp/http_test.pl Last Interface Success: 0s Last Interface Failure: n/a # Interface Failure(s): 0 Interface: eth1 Status: failed Last Status Change: Wed Mar 30 19:03:59 2011 -Test: user Script: /tmp/http_test.pl Last Interface Success: n/a Last Interface Failure: 0s # Interface Failure(s): 52 Scripts returns 0 for success, non-zero for failure.
2010-03-23when a test is not configured the response time window is incorrectly scaled ↵Michael Larson
into milliseconds, therefore without a configured test it is much more likely that a ping test will fail. the work-around is to configure a test (response time is not required as the default value of 5 seconds will be used at this point).
2009-12-23fix for bug 5178. initialize resp-time if not set.Michael Larson
2009-07-28reworked tests to fix bug in handling of received packets. modified show cmd ↵slioch
output.