Zabbix server can't connect to zabbix agent

NethServer Version: 7.7.1908
Module: zabbix

I have install zabbix server on my nethserver and everything works fine.
But I can’t make it access my other nethservers, it just say “connection refused” and I can’t even telnet from my zabbix server to the agent.

I have use zabbix before so I have a good idea how to setup the server.
I also have one older nethserver that have the agent on and it was no error to connect to that server.

I have look at the iptables but I can’t see anything wrong. I have add so server have access to the agent

iptables -A INPUT -p tcp -s 192.168.x.x --dport 10050 -m state --state NEW,ESTABLISHED -j ACCEPT

where 192.168.x.x is the server ip address

and inte the config of the agent I have add
to my zabbix server
I have restart the agent and that so now I’m not sure what more I can do.

when I did try telnet to my older nethserver I get no “connection refused”

Hmm when I did look at the status of iptable it say is inactive so I do not have any firewall so that is not the problem?

Hi cazz,

On the server running the agent: (green only or green,red)

# config set fw_zabbix service status enabled TCPPort 10050 access green

# signal-event firewall-adjust

# cat /etc/shorewall/rules | grep 1005*
ACCEPT  loc     $FW     tcp     10050

# config show fw_zabbix

Also: IP address of Zabbix server (mine is at on the server running the agent, maybe no /24 but the exact address

# cat /etc/zabbix/zabbix_agentd.conf | grep ^Server

Have a look at:
As usual Google translate is your friend !

If you don’t use discovery, you have to create the server on the Zabbix server. Look at page 25. BackupPC is the server running the agent.


1 Like

Ahh I did not enable the zabbix server to access the green.
Now it works, thanks alot :slight_smile: