From: Florian Forster Date: Tue, 19 Feb 2008 13:00:22 +0000 (+0100) Subject: src/collectd.c: Write a more informative error message if looking up the FQDN fails. X-Git-Tag: collectd-4.3.0~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=93a27c977f84b90344f3f6ec6c0263fac6799fb1;p=collectd.git src/collectd.c: Write a more informative error message if looking up the FQDN fails. As requested by Micha Krause. --- diff --git a/src/collectd.c b/src/collectd.c index 2d161aad..f260c842 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -87,7 +87,11 @@ static int init_hostname (void) status = getaddrinfo (hostname_g, NULL, &ai_hints, &ai_list); if (status != 0) { - ERROR ("getaddrinfo failed."); + ERROR ("Looking up \"%s\" failed. You have set the " + "\"FQDNLookup\" option, but I cannot resolve " + "my hostname to a fully qualified domain " + "name. Please fix you network " + "configuration."); return (-1); }