Skip to content

Health checks and Maintenance

Kai S edited this page May 2, 2016 · 1 revision

Health checking and Maintenance

When using a healthcheck script using "python -m exabgp healthcheck" I was in search of a way to temporarily take the checked service in maintenance for a small time.

Asking on IRC, I finally started searching in the healthcheck output:

python -m exabgp healthcheck --help
...
checking healthiness:
...
  --disable FILE        if FILE exists, the service is considered disabled

So, in my case, I added this configuration snippet to my (DNS) health check configuration:

# if FILE exists, the service is considered disabled
disable = /etc/DNS-IS-DOWN