From 93a27c977f84b90344f3f6ec6c0263fac6799fb1 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 19 Feb 2008 14:00:22 +0100 Subject: [PATCH] src/collectd.c: Write a more informative error message if looking up the FQDN fails. As requested by Micha Krause. --- src/collectd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.11.0