[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 |
Issue Links: |
|
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 Agentd.conf: zabbix agentd.logfile: 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 -z zabbix_server -s test1 -k system.hostname -o test1 -vv ] 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. 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 |