I have my Agent / Server configured correctly, I know this because it was working. I just made changes to the firewall on the agent side restricting access on port 10050, but permitting the Server access like so:

$ firewall-cmd --new-zone=zabbix
$ firewall-cmd --reload
$ firewall-cmd --get-zones
$ firewall-cmd --permanent --zone=zabbix --add-rich-rule='
  rule family="ipv4"
  source address="<<server_ip>>"
  port protocol="tcp" port="10050" accept'
$ firewall-cmd --reload
$ firewall-cmd --zone=zmonitor --list-all

Now there is a communication issue. The agent log is reporting the following:

 no active checks on server [<<server_ip>>:10051]: host [<<hostname>>.local] not found

The sever is reporting the following:

 cannot send list of active checks to "<<agent_ip>>": host [<<hostname>>.local] not found

Zabbix Web Server reports the following issue:

Get value from agent failed: cannot connect to [[<<Agent_IP>>]:10050]: [113] No route to host

What is wrong with --add-rich-rule?


The first two errors are unrelated. They tell you that the hostname is misconfigured for active checks (and the connectivity works from the agent to the server).

The last error does not seem to be firewall related, a least judging by the error message - "No route to host". That is more likely a routing/network configuration issue.

To verify that, you can try temporarily shutting down the firewall on the agent box and telnetting from the server to the agent on port 10050.

| improve this answer | |
  • Thanks I double checked my Hostname, saw that it there was a typo. The difference between a - and an _. – mcv Dec 6 '16 at 23:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.