[bradm] Add haproxy nrpe checks

This commit is contained in:
Brad Marshall
2015-02-19 15:24:24 +10:00
parent 481e5b2198
commit 660c89c9e9

View File

@@ -500,7 +500,9 @@ def update_nrpe_config():
hostname = nrpe.get_nagios_hostname()
current_unit = nrpe.get_nagios_unit_name()
nrpe_setup = nrpe.NRPE(hostname=hostname)
nrpe.copy_nrpe_checks()
nrpe.add_init_service_checks(nrpe_setup, services(), current_unit)
nrpe.add_haproxy_checks(nrpe_setup, current_unit)
nrpe_setup.write()