{"id":3342,"date":"2019-07-22T10:59:16","date_gmt":"2019-07-22T02:59:16","guid":{"rendered":"http:\/\/liyue.name\/blog\/?p=3342"},"modified":"2026-02-10T21:55:09","modified_gmt":"2026-02-10T13:55:09","slug":"get-value-from-agent-failed-cannot-connect-to-no-route-to-host%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/liyue.name\/?p=3342","title":{"rendered":"Error:Get value from agent failed: cannot connect to No route to host\u7684\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>Error:Get value from agent failed: cannot connect to [[ip address]:10050]: [113] No route to host<br \/>\n<em>Client OS:CentOS Linux release 7.6.1810 (Core)<br \/>\nZabbix agent:zabbix-agent-4.0.10-1.el7.x86_64<\/em><br \/>\n<strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><br \/>\n1\u3001 \u68c0\u67e510050\u7aef\u53e3\u662f\u5426\u5f00\u542f<br \/>\n<code>firewall-cmd --zone=public --query-port=10050\/tcp<\/code><br \/>\nno<!--more--><br \/>\n2\u3001\u6253\u5f0010050\u7aef\u53e3<br \/>\n<code>firewall-cmd --zone=public --add-port=10050\/tcp --permanent<\/code><br \/>\nsuccess<br \/>\n3\u3001\u518d\u6b21\u68c0\u67e510050\u7aef\u53e3<br \/>\n<code>firewall-cmd --zone=public --query-port=80\/tcp<\/code><br \/>\nyes<br \/>\n4\u3001\u5728Zabbix Server\u4e0a\u5237\u65b0\uff0c\u5c31\u4e0d\u4f1a\u51fa\u73b0\u90a3\u4e2a\u62a5\u9519\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error:Get value from agent failed: cannot connect to [[ &hellip; <a href=\"https:\/\/liyue.name\/?p=3342\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cError:Get value from agent failed: cannot connect to No route to host\u7684\u89e3\u51b3\u65b9\u6cd5\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[51,76,98,253],"class_list":["post-3342","post","type-post","status-publish","format-standard","hentry","category-linux","tag-agent","tag-centos","tag-error","tag-zabbix"],"_links":{"self":[{"href":"https:\/\/liyue.name\/index.php?rest_route=\/wp\/v2\/posts\/3342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liyue.name\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liyue.name\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liyue.name\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/liyue.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3342"}],"version-history":[{"count":2,"href":"https:\/\/liyue.name\/index.php?rest_route=\/wp\/v2\/posts\/3342\/revisions"}],"predecessor-version":[{"id":5713,"href":"https:\/\/liyue.name\/index.php?rest_route=\/wp\/v2\/posts\/3342\/revisions\/5713"}],"wp:attachment":[{"href":"https:\/\/liyue.name\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liyue.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/liyue.name\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}