Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit cb82d31

Browse files
committed
update the sample configuration file
1 parent d61451d commit cb82d31

File tree

1 file changed

+66
-19
lines changed

1 file changed

+66
-19
lines changed

healthcheck.conf.sample

+66-19
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,89 @@
1+
# For complete configuration instructions see the wiki page:
2+
# https://github.com/shthead/exabgp-healthcheck/wiki/Configuration-File
3+
14
[global]
25

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.
48
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.
613
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.
816
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.
1021
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.
1226
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).
1432
logfile=/var/log/healthcheck/healthcheck
33+
1534
# Log the output of the check command to the debug log. Requires debug=yes
1635
logcheck=no
36+
1737
# Enable the debug log
1838
debug=no
1939

2040
[ipv4service]
2141

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.
2345
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.
2550
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.
3063
disable=/etc/exabgp/healthcheck_ipv4service.disable
3164

65+
3266
[ipv6service]
3367

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.
3571
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.
3776
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

Comments
 (0)