From c9fe03878b1808e9c33e3f9b16964a142331253b Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 31 Jan 2009 12:50:08 +0000 Subject: pingu: cofigurable timeout/retry. default values. invert -d - make timeout and retry configurable - possible to set default action, timeout and retry values - the -d option means "daemonize" rather than "debug mode". --- pingu.conf | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'pingu.conf') diff --git a/pingu.conf b/pingu.conf index 215b25c..51c7573 100644 --- a/pingu.conf +++ b/pingu.conf @@ -2,17 +2,21 @@ # comments are prefixed with # # global option -interval 3 +interval 1 +retry 3 +timeout 1.0 -router 10.65.67.11 +host 10.65.67.11 +name ISP-1 interface eth1 -provider ISP-1 -up-action echo "isp 1 went up" >> /tmp/pingu.log -down-action echo "iso 1 went down" >> /tmp/pingu.log +timeout 0.3 +retry 2 +up-action echo "isp 1 went up" +down-action echo "iso 1 went down" -#router 10.2.0.3 +#host 10.2.0.3 +#name ISP-2 #interface eth0 -#provider ISP-1 -#up-action /etc/pingu/isp1 up -#down-action /etc/pingu/isp1 down +#up-action /etc/pingu/isp2 up +#down-action /etc/pingu/isp2 down -- cgit v1.2.3