ZABBIX Forums  

Go Back   ZABBIX Forums > Zabbix Discussions and Feedback > Zabbix Help

Reply
 
Thread Tools Display Modes
  #1  
Old 11-12-2008, 16:33
blocker blocker is offline
Junior Member
 
Join Date: Dec 2008
Posts: 3
Default Assuming that agent dropped connection because of access permissions

Hello,

i have successfully installed zabbix 1.6.1 from source. I have installed the zabbix client on some hosts, everything runs fine, except for 1 host which can not be monitored for some reason. In the server log i get:

Code:
24049:20081211:155550 Got empty string from [host name] IP [1.1.1.1] Parameter [agent.ping]
 24049:20081211:155550 Assuming that agent dropped connection because of access permissions
as suggested in some of the posts at this forum i have raised up the timeout in the zabbix agent configuration to 9 and then in the zabbix server configuration to 15 and of course i restarted the services - unfortunately there was no positive result

i have double checked everything - firewall port, uninstall/install/recompile, and i still get the same error.
A small note is that i have tried to telnet to the zabbix agent from localhost and from the server - both connections get closed immediately:

Code:
telnet localhost 10050
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.
Does anybody have an idea what might be wrong with my zabbix agent? Or is that problem not related to the agent at all?

Thanks!
Reply With Quote
  #2  
Old 12-12-2008, 15:45
Calimero Calimero is offline
Senior Member
 
Join Date: Nov 2006
Location: Near Paris
Posts: 471
Default

In zabbix_agentd.conf, does the "Server=" configuration variable have the right IP of your zabbix server ?

If you guery the agent from an unauthorized IP, it will at first accept the inbound connection, check source IP and close the connection if IP is unauthorized.

If you have:
Server=1.2.3.4,1.2.3.10

And you 'telnet' from the host itself to the loopback, it won't work as 127.0.0.1 isn't authorized.
Reply With Quote
  #3  
Old 15-12-2008, 11:44
caarts caarts is offline
Member
Zabbix Certified Specialist
 
Join Date: Aug 2008
Location: The Netherlands
Posts: 37
Send a message via MSN to caarts
Default

Just a thought, did you check the log file on the client and the zabbix server?
What kind of OS do you run on the client?
Reply With Quote
  #4  
Old 15-12-2008, 11:56
blocker blocker is offline
Junior Member
 
Join Date: Dec 2008
Posts: 3
Default

Quote:
Originally Posted by Calimero View Post
In zabbix_agentd.conf, does the "Server=" configuration variable have the right IP of your zabbix server ?

If you guery the agent from an unauthorized IP, it will at first accept the inbound connection, check source IP and close the connection if IP is unauthorized.

If you have:
Server=1.2.3.4,1.2.3.10

And you 'telnet' from the host itself to the loopback, it won't work as 127.0.0.1 isn't authorized.
Hello,

i have double checked the config of the client - everything seems to be right...
Reply With Quote
  #5  
Old 15-12-2008, 12:03
blocker blocker is offline
Junior Member
 
Join Date: Dec 2008
Posts: 3
Default

Quote:
Originally Posted by caarts View Post
Just a thought, did you check the log file on the client and the zabbix server?
What kind of OS do you run on the client?
Hello,

its running debian etch

in the log there seems to be nothing disturbing (at least something i can see):

Code:
2774:20081212:143346 zabbix_agentd started. ZABBIX 1.6.1.
  2797:20081212:143346 zabbix_agentd collector started
  2798:20081212:143346 zabbix_agentd listener started
  2799:20081212:143346 zabbix_agentd listener started
  2800:20081212:143346 zabbix_agentd listener started
  2801:20081212:143346 zabbix_agentd active check started [correct_server_ip:10051]
in the server log i still get:

Code:
24049:20081215:120129 Got empty string from [client name] IP [correct_client_ip] Parameter [agent.ping]
 24049:20081215:120129 Assuming that agent dropped connection because of access permissions
Reply With Quote
  #6  
Old 17-12-2008, 11:36
caarts caarts is offline
Member
Zabbix Certified Specialist
 
Join Date: Aug 2008
Location: The Netherlands
Posts: 37
Send a message via MSN to caarts
Default

I came across this post, same error as you described.

http://www.zabbix.com/forum/showthre...t=empty+string
Reply With Quote
  #7  
Old 18-02-2009, 16:58
nepto nepto is offline
Junior Member
 
Join Date: Sep 2007
Location: Sala, Slovakia
Posts: 11
Send a message via Skype™ to nepto
Default

I have the same problem, the pity is that nobody put an answer here.

I turner on DEBUG and here is what I have found:

Code:
Listener error: Connection from [::ffff:127.0.0.1] rejected. Allowed server is [127.0.0.1]
Veru funny :-/
Reply With Quote
  #8  
Old 25-02-2009, 22:52
operativo operativo is offline
Junior Member
 
Join Date: Feb 2009
Posts: 1
Default

Quote:
Originally Posted by nepto View Post
I have the same problem, the pity is that nobody put an answer here.

I turner on DEBUG and here is what I have found:

Code:
Listener error: Connection from [::ffff:127.0.0.1] rejected. Allowed server is [127.0.0.1]
Veru funny :-/
I put:

Server=::ffff:127.0.0.1

in zabbix_agentd.conf and it works!

Reply With Quote
  #9  
Old 17-03-2010, 08:18
Murz Murz is offline
Junior Member
 
Join Date: Sep 2008
Posts: 13
Cool

Quote:
Originally Posted by operativo View Post
I put:
Server=::ffff:127.0.0.1
in zabbix_agentd.conf and it works!
Thank's, operativo! This strange changes help me too on 1.8.1 version! Server=::ffff:213.177.108.xxx
Reply With Quote
  #10  
Old 11-07-2010, 09:36
henry henry is offline
Junior Member
 
Join Date: Jun 2010
Posts: 16
Default

Same problem here, server is Zabbix appliance 1.8
client is compiled from source on S10U8 x86 based on zabbix-1.8.2.tar.gz

running ./configure --enable-client
then make install (as root)


Created:
root@s10u8-t:/# ls -l /etc/zabbix/zabbix_agentd.conf
-rw-r--r-- 1 root root 20 Jul 11 16:46 /etc/zabbix/zabbix_agentd.conf

root@s10u8-t:/# cat /etc/zabbix/zabbix_agentd.conf
Server=172.27.26.15

I can telnet to port 10050 from server and get:
Trying 172.27.26.101...
Connected to 172.27.26.101.
Escape character is '^]'.
sdf
ZBXDZBX_NOTSUPPORTEDConnection closed by foreign host.

so that's ok.

But the server log says:

2928:20100711:074346.041 Item [s10u8-t:agent.ping] error: Got empty string from [172.27.26.101]. Assuming that agent dropped connection because of access permissions

zabbix_agentd.conf runs with my own local user on the client. Haven't created a separate account yet. But it seems the zabbix user doesn't need (or want) special privs anyway?

Any ideas?

Cheers,
henry
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:32.