Revert "Fix haproxy nrpe checks"

Reverting this for a more general fix; see the topic bug/1796830.

This reverts commit 65c90e7c27.

Change-Id: If7f7801b3b170f252c318de746c3d4d90edb808a
This commit is contained in:
Alex Kavanagh (tinwood) 2018-11-23 16:56:10 +00:00
parent 65c90e7c27
commit a11fe58845
1 changed files with 1 additions and 7 deletions

View File

@ -730,13 +730,7 @@ def update_nrpe_config():
hostname = nrpe.get_nagios_hostname()
current_unit = nrpe.get_nagios_unit_name()
nrpe_setup = nrpe.NRPE(hostname=hostname)
nrpe_files_dir = os.path.join(
os.getenv('CHARM_DIR'),
'charmhelpers',
'contrib',
'openstack',
'files')
nrpe.copy_nrpe_checks(nrpe_files_dir)
nrpe.copy_nrpe_checks()
nrpe.add_init_service_checks(nrpe_setup, services(), current_unit)
nrpe.add_haproxy_checks(nrpe_setup, current_unit)
api_port = determine_api_port(config('bind-port'),