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:
parent
a7d6349905
commit
da80aad637
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue