Add swift-proxy healthcheck nrpe check

Adds a healthcheck nrpe nagios check for swift-proxy.

Change-Id: I9e00253a62e9852155a4ff02d23ab2fe4a177c68
Closes-Bug: 1624987
This commit is contained in:
bradm 2016-09-19 16:22:45 +10:00
parent a7d6349905
commit da80aad637
1 changed files with 7 additions and 0 deletions

View File

@ -699,6 +699,13 @@ def update_nrpe_config():
nrpe.copy_nrpe_checks()
nrpe.add_init_service_checks(nrpe_setup, services(), current_unit)
nrpe.add_haproxy_checks(nrpe_setup, current_unit)
nrpe_setup.add_check(
shortname="swift-proxy-healthcheck",
description="Check Swift Proxy Healthcheck",
check_cmd="/usr/lib/nagios/plugins/check_http \
-I localhost -u /healthcheck -p 8070 \
-e \"OK\""
)
nrpe_setup.write()