1
+ # For complete configuration instructions see the wiki page:
2
+ # https://github.com/shthead/exabgp-healthcheck/wiki/Configuration-File
3
+
1
4
[global]
2
5
3
- # Wait N seconds between health checks
6
+ # The interval determins how often health checks are ran (in seconds).
7
+ # An interval of 3 will wait 3 seconds between each health check.
4
8
interval=3
5
- # Wait N seconds for the check command to execute. The timeout must be lower than the interval.
9
+
10
+ # Wait N seconds for the check command to execute. The timeout must be
11
+ # lower than the interval. If the timeout is reached the service is assumed
12
+ # down and the process of withdrawing the route begins.
6
13
timeout=2
7
- # Metric to set. Must be between 1 and 1000.
14
+
15
+ # The MED of all routes being announced. Must be between 1 and 1000.
8
16
metric=100
9
- # Check N times before considering the service up
17
+
18
+ # How many times the service check must pass before the service is considered
19
+ # up. If this is set to 5, the service must pass 5 health checks before the
20
+ # route will be announced.
10
21
rise=5
11
- # Check N times before considering the service down
22
+
23
+ # How many times the service check must fail before the service is considered
24
+ # down. If this is set to 5, the service must fail 5 health checks before the
25
+ # route will be withdrawn.
12
26
fall=3
13
- # Log location. Errors will be logged to logfile.err and debug to logfile.debug (if enabled)
27
+
28
+ # Log location. This must be a full path to a file. If the file does not exist
29
+ # it will be created (if the permissions allow it). If the file cannot be
30
+ # created the script will error and exit. Errors will be logged to
31
+ # [filename].err and debug to [filename].debug (if enabled).
14
32
logfile=/var/log/healthcheck/healthcheck
33
+
15
34
# Log the output of the check command to the debug log. Requires debug=yes
16
35
logcheck=no
36
+
17
37
# Enable the debug log
18
38
debug=no
19
39
20
40
[ipv4service]
21
41
22
- # The next hop IP address. This will usually be this server.
42
+ # The next hop IP address for the route to be advertised with BGP. This will
43
+ # usually be the servers main IP address. This IP must belong to the same
44
+ # address family as the IP's being announced.
23
45
nexthop=192.168.1.1
24
- # The command to use for health check
46
+
47
+ # The command to use for health check. This can be anything you like - a bash
48
+ # one liner or a script etc. The command that is executed MUST have an exit
49
+ # code of 0 for success. Any other exit code is considered fail.
25
50
command="/usr/local/scripts/check_ipv4.sh"
26
- # IP addresses to announce
27
- ip=10.1.1.1/32
28
- ip=10.1.1.2/32
29
- # If FILE exists, the service is considered disabled
51
+
52
+ # IP addresses to announce. You can specify as many as you like. Ensure that
53
+ # the IP addresses all belong to the same address family as the nexthop IP.
54
+ # If you do not specify a mask for the IP address it is assumed to be /128 for
55
+ # IPv6 and /32 for IPv4.
56
+ ip=10.1.1.1
57
+ ip=10.1.1.2
58
+
59
+ # If this file exists the service will be considered down. You can use this to
60
+ # disable the service easily - simple touch the file and the routes will be
61
+ # withdrawn. Once you are done, remove the file and the service will start
62
+ # being checked again.
30
63
disable=/etc/exabgp/healthcheck_ipv4service.disable
31
64
65
+
32
66
[ipv6service]
33
67
34
- # The next hop IP address. This will usually be this server.
68
+ # The next hop IP address for the route to be advertised with BGP. This will
69
+ # usually be the servers main IP address. This IP must belong to the same
70
+ # address family as the IP's being announced.
35
71
nexthop=fd12:3456:ffff::1
36
- # The command to use for health check
72
+
73
+ # The command to use for health check. This can be anything you like - a bash
74
+ # one liner or a script etc. The command that is executed MUST have an exit
75
+ # code of 0 for success. Any other exit code is considered fail.
37
76
command="/usr/local/scripts/check_ipv6.sh"
38
- # IP addresses to announce
39
- ip=fd12:3456:ffff:1::1/128
40
- ip=fd12:3456:ffff:1::2/128
41
- # If FILE exists, the service is considered disabled
42
- disable=/etc/exabgp/healthcheck_ipv6service.disable
77
+
78
+ # IP addresses to announce. You can specify as many as you like. Ensure that
79
+ # the IP addresses all belong to the same address family as the nexthop IP.
80
+ # If you do not specify a mask for the IP address it is assumed to be /128 for
81
+ # IPv6 and /32 for IPv4.
82
+ ip=fd12:3456:ffff:1::1
83
+ ip=fd12:3456:ffff:1::2
84
+
85
+ # If this file exists the service will be considered down. You can use this to
86
+ # disable the service easily - simple touch the file and the routes will be
87
+ # withdrawn. Once you are done, remove the file and the service will start
88
+ # being checked again.
89
+ disable=/etc/exabgp/healthcheck_ipv6service.disable
0 commit comments