[ZBX-6605] AIX agent,sender cannot use SourceIP Created: 2013 May 15  Updated: 2017 May 30  Resolved: 2013 May 23

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: 2.0.3, 2.0.5
Fix Version/s: 2.0.7rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Andrei Gushchin (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: aix
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

AIX 6.1
uname-a
AIX test1 1 6 00F61FA44C00


Issue Links:
Duplicate

 Description   

Using SourceIP in agentd.conf or -I option in zabbix_sender on AIX doesn't work and produce error: bind() fail

AGENT

ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 10.11.11.25 netmask 0xffffff00 broadcast 10.11.11.255
inet 10.11.11.13 netmask 0xffffff00 broadcast 10.11.11.255
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
en1: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 10.11.11.205 netmask 0xffffff00 broadcast 10.11.11.255
inet 10.11.11.103 netmask 0xffffff00 broadcast 10.11.11.255
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0

Agentd.conf:
SourceIP=10.11.11.13

zabbix agentd.logfile:
2977826:20130515:154218.385 Get active checks error: bind() failed: [68] Can't assign requested address
2437292:20130515:154218.387 Get active checks error: bind() failed: [68] Can't assign requested address

NOTE: For agent: Passive checks work, but active don't.

SENDER

./zabbix_sender -z zabbix_server -s test1 -I 10.11.11.13 -k system.hostname -o test1 -vv
zabbix_sender [692404]: DEBUG: send value error: bind() failed: [68] Can't assign requested address
Sending failed. Use option -vv for more detailed output.

./zabbix_sender -z zabbix_server -s test1 -k system.hostname -o test1 -vv
zabbix_sender [2973764]: DEBUG: answer [

{ "response":"success", "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000060"}

]
info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000060"
sent: 1; skipped: 0; total: 1

Maybe it is the similar problem like this https://bugzilla.samba.org/show_bug.cgi?id=6970



 Comments   
Comment by Andrei Gushchin (Inactive) [ 2013 May 15 ]

Agnet with SourceIP.
It is netstat -aon output

tcp4       0      0  10.11.11.13.10050     *.*                    LISTEN

	 so_options: (ACCEPTCONN|REUSEADDR|AUDIT) 
	 q0len:0 qlen:0 qlimit:1024 	 so_state: () 
	 timeo:0 uid:224
	 so_special: (LOCKBALE|MEMCOMPRESS|ACCEPT|DISABLE) 
	 so_special2: (PROC) 
	 sndbuf: 
		 hiwat:32768 lowat:4096 mbcnt:0 mbmax:131072
	 rcvbuf: 
		 hiwat:32768 lowat:1 mbcnt:0 mbmax:131072
		 sb_flags: (SEL|NOTIFY) 
	 TCP:
	 mss:1460 

Start agent WITHOUT SourceIP,

tcp4       0      0  10.11.11.13.10050     *.*                    LISTEN

	 so_options: (ACCEPTCONN|REUSEADDR|AUDIT) 
	 q0len:0 qlen:0 qlimit:1024 	 so_state: () 
	 timeo:0 uid:224
	 so_special: (LOCKBALE|MEMCOMPRESS|ACCEPT|DISABLE) 
	 so_special2: (PROC) 
	 sndbuf: 
		 hiwat:32768 lowat:4096 mbcnt:0 mbmax:131072
	 rcvbuf: 
		 hiwat:32768 lowat:1 mbcnt:0 mbmax:131072
		 sb_flags: (SEL|NOTIFY) 
	 TCP:
	 mss:1460 
Comment by Andrei Gushchin (Inactive) [ 2013 May 15 ]

Binding SSH daemon on this interface works without problem:

May 15 15:42:40 test1 auth|security:info sshd[151684]: Received signal 15; terminating. 
May 15 15:42:45 test1 auth|security:info sshd[151688]: Server listening on 10.11.11.13 port 22. 
Comment by Andris Mednis [ 2013 May 22 ]

A fix in development branch svn://svn.zabbix.com/branches/dev/ZBX-6605 rev.35779 works for Zabbix sender. Need to test it with Zabbix agent.

Comment by Andris Mednis [ 2013 May 23 ]

Available in the development branch svn://svn.zabbix.com/branches/dev/ZBX-6605

Comment by dimir [ 2013 May 30 ]

Successfully tested. I propose to clean out the whole structure before using it as it is done in case of IPv6 version of zbx_tcp_connect(), please review the changes in r35954.

andris Thanks, accepted.

Comment by Andris Mednis [ 2013 May 30 ]

Fixed in versions pre-2.0.7 rev. 35972 and pre-2.1.0 rev. 35974

Generated at Fri Mar 29 01:09:16 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.