[bradm] Update nagios_hostname_type check to see if hostname --fqdn resolves, if it doesn't just use hostname.  This is useful for lxc containers on a maas host.
[brad-marshall, r=chris-gondolin] Fixes an issue with the nagios hostname being empty if hostname --fqdn errors out, which can happen with LXCs or other oddness with DNS.