diff options
Diffstat (limited to 'src/libs/zbxsysinfo/common/ntp.c')
-rw-r--r-- | src/libs/zbxsysinfo/common/ntp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libs/zbxsysinfo/common/ntp.c b/src/libs/zbxsysinfo/common/ntp.c index be87c41f..164de72d 100644 --- a/src/libs/zbxsysinfo/common/ntp.c +++ b/src/libs/zbxsysinfo/common/ntp.c @@ -264,13 +264,8 @@ int check_ntp(char *host, unsigned short port, int *value_int) *value_int = 0; - if(NULL == (hp = gethostbyname(host)) ) + if(NULL == (hp = zbx_gethost(host)) ) { -#ifdef HAVE_HSTRERROR - zabbix_log( LOG_LEVEL_DEBUG, "gethostbyname() failed for NTP server [%d]", (char*)hstrerror((int)h_errno)); -#else - zabbix_log( LOG_LEVEL_DEBUG, "gethostbyname() failed for NTP server [%s]", strerror_from_system(h_errno)); -#endif return SYSINFO_RET_OK; } |