You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under some circumstances, collectd fails with the following error:
Looking up "[HOSTNAME]" failed. You have set the "FQDNLookup" option, but I cannot resolve my hostname to a fully qualified domain name. Please fix the network configuration.
This error message could be improved by the user of gai_strerror or, if the return code is EAI_SYSTEM, perror. As it stands the error message provides only limited information about what caused the error. This makes it a little more difficult to diagnose.
The relevant code is in src/daemon/collectd.c:
char hostname[hostname_len];
if (gethostname(hostname, hostname_len) != 0) {
fprintf(stderr, "`gethostname' failed and no "
"hostname was configured.\n");
return -1;
}
hostname_set(hostname);
str = global_option_get("FQDNLookup");
if (IS_FALSE(str))
return 0;
struct addrinfo *ai_list;
struct addrinfo ai_hints = {.ai_flags = AI_CANONNAME};
int status = getaddrinfo(hostname, NULL, &ai_hints, &ai_list);
if (status != 0) {
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 the network "
"configuration.",
hostname);
return -1;
}
The text was updated successfully, but these errors were encountered:
Under some circumstances, collectd fails with the following error:
This error message could be improved by the user of
gai_strerror
or, if the return code isEAI_SYSTEM
,perror
. As it stands the error message provides only limited information about what caused the error. This makes it a little more difficult to diagnose.The relevant code is in
src/daemon/collectd.c
:The text was updated successfully, but these errors were encountered: