2513
2513
if len(relations) == 1 and 'nagios_hostname' in relations[0]:
2514
2514
nagios_hostname = relations[0]['nagios_hostname']
2515
2515
log("update_nrpe_checks: Obtained nagios_hostname ({}) "
2519
2518
unit = hookenv.local_unit()
2520
2519
unit_name = unit.replace('/', '-')
2521
2520
nagios_hostname = "%s-%s" % (config_data['nagios_context'], unit_name)
2528
2527
'/var/lib/nagios/export/service__{}_check_pgsql.cfg'.format(