[ZBX-3420] domain resolution does not seem to work on openbsd Created: 2011 Jan 14  Updated: 2017 May 30  Resolved: 2011 Jun 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 1.8.4
Fix Version/s: 1.8.6

Type: Incident report Priority: Major
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

One of our proxies is running on OpenBSD 4.2 and when trying to monitor some hosts by DNS names, the following error is written into the log file:

14378:20110113:172100.105 Item [host1:net.if.out[{$NET_IF_ETH},bytes]] error: Get value from agent failed: gethost() failed for address 'host1.network.lan' [Undefined error: 0]

Non-Zabbix utilities like ping and nslookup resolve domain names properly.



 Comments   
Comment by Aleksandrs Saveljevs [ 2011 Jun 02 ]

This happens when Zabbix server is compiled without IPv6 support and a host is set to be monitored by a DNS name that fails to resolve.

On Linux, Zabbix server would also write a log message about failed gethost():

32338:20110602:132002.912 Item [ZBX-1029:net.tcp.dns.query[,_xmpp-client._tcp.google.com,SRV]] error: Get value from agent failed: gethost() failed for address 'nonexistentdomainname': [[110] Connection timed out]

Comment by Aleksandrs Saveljevs [ 2011 Jun 02 ]

So domain resolution on OpenBSD works. There is another bug, however. Namely, we output an error message based on "errno", whereas we should actually output an error message based on "h_errno". This has been fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3420.

Comment by Aleksandrs Saveljevs [ 2011 Jun 13 ]

Error message fixed in pre-1.8.6 in r20187.

Generated at Thu Apr 25 20:03:32 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.