I ran this to fix the service config files: juju run --all 'cd /var/lib/nagios/export; for n in service__*; do sudo sed -i -r "s/host_name([[:blank:]]+).*/host_name\1$(hostname)/" $n; done'
I ran this to fix the service config files: nagios/ export; for n in service__*; do sudo sed -i -r "s/host_ name([[ :blank: ]]+).*/ host_name\ 1$(hostname) /" $n; done'
juju run --all 'cd /var/lib/