summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxsysinfo/common/http.c
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-01-22 10:22:46 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-01-22 10:22:46 +0000
commit0dcb4e9f403253a308b088c145e7404c28de2008 (patch)
treebf43806b346e24fdf47ef7045d9b023f71a6462e /src/libs/zbxsysinfo/common/http.c
parent621cd1669477fe40dfcb023bd48cdff267be84df (diff)
downloadzabbix-0dcb4e9f403253a308b088c145e7404c28de2008.tar.gz
zabbix-0dcb4e9f403253a308b088c145e7404c28de2008.tar.xz
zabbix-0dcb4e9f403253a308b088c145e7404c28de2008.zip
- added possibility of hostname using (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3746 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo/common/http.c')
-rw-r--r--src/libs/zbxsysinfo/common/http.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/libs/zbxsysinfo/common/http.c b/src/libs/zbxsysinfo/common/http.c
index d8862dca..b7219183 100644
--- a/src/libs/zbxsysinfo/common/http.c
+++ b/src/libs/zbxsysinfo/common/http.c
@@ -37,19 +37,8 @@ static int get_http_page(char *hostname, char *param, unsigned short port, char
struct hostent *hp;
- if(NULL == (hp = gethostbyname(hostname)) )
+ if(NULL == (hp = zbx_gethost(hostname)) )
{
- zabbix_log(
- LOG_LEVEL_DEBUG,
- "get_http_page - gethostbyname() failed for host '%s' [%s]",
- hostname,
-#ifdef HAVE_HSTRERROR
- (char*)hstrerror((int)h_errno)
-#else
- strerror_from_system(h_errno)
-#endif
- );
-
return SYSINFO_RET_FAIL;
}