{"id":653,"date":"2020-03-17T09:55:30","date_gmt":"2020-03-17T01:55:30","guid":{"rendered":"https:\/\/www.linuxdevops.cn\/?p=653"},"modified":"2020-03-17T09:58:11","modified_gmt":"2020-03-17T01:58:11","slug":"small-problems-in-zabbix-docker-container-deployment","status":"publish","type":"post","link":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/","title":{"rendered":"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898"},"content":{"rendered":"\n

1.\u4e2d\u6587\u4e71\u7801\u95ee\u9898<\/h2>\n\n\n\n

\u5177\u4f53\u6b65\u9aa4\u53c2\u8003 \u4e00\u4e0b\u94fe\u63a5\uff1a\u9700\u8981\u4fee\u6539\u7684\u5bb9\u5668\u4e3a\uff1azabbix-nginx<\/p>\n\n\n\n

https:\/\/blog.csdn.net\/Callousmaster\/article\/details\/99972089<\/a><\/p>\n\n\n\n

2. docker\u5bb9\u5668\u5185 zabbix \u9875\u9762\u65f6\u95f4\u663e\u793a\u4e0d\u5bf9<\/h2>\n\n\n\n

\u4fee\u6539\u91cd\u542f\u5bb9\u5668\u540e\u4f1a\u5931\u6548\uff0c\u6700\u597d\u5728\u521b\u5efa\u5bb9\u5668\u7684\u65f6\u5019\u5c31\u505a\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u6302\u8f7d\uff0c<\/p><\/blockquote>\n\n\n\n

\u5bb9\u5668\uff1a zabbix-nginx  \u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u91cd\u542fphp-fpm \n\nvi  \/etc\/php7\/conf.d\/99-zabbix.ini \n    \u4fee\u6539\u4e3a\uff1adate.timezone=Asia\/Shanghai\n\npkill -9 php   \n\/usr\/sbin\/php-fpm7  \u91cd\u542fphp-fpm  <\/pre>\n\n\n\n

3. zabbix docker\u5bb9\u5668\u65e0\u6cd5\u76d1\u63a7\u5bbf\u4e3b\u673a<\/h2>\n\n\n\n
\u4fee\u6539zabbix-agent \u914d\u7f6e\u6587\u4ef6  \u5c06zabbix\u670d\u52a1\u5668IP\u6539\u4e3a Docker \u5bb9\u5668\u7ed1\u5b9aIP\nServer=172.17.0.3 \nServerActive=172.17.0.3 \n\u91cd\u542fzabbix-agent \nsystemctl restart zabbix-agent \n<\/pre>\n\n\n\n

4. \u90e8\u7f72\u5b8c\u6210\u540e \u8bbf\u95ee\u63a7\u5236\u53f0\u4e0d\u901a<\/h2>\n\n\n\n
\u4fee\u6539\u9632\u706b\u5899\u9ed8\u8ba4\u89c4\u5219\n iptables -P FORWARD ACCEPT<\/pre>\n","protected":false},"excerpt":{"rendered":"

1.\u4e2d\u6587\u4e71\u7801\u95ee\u9898 \u5177\u4f53\u6b65\u9aa4\u53c2\u8003 \u4e00\u4e0b\u94fe\u63a5\uff1a\u9700\u8981\u4fee\u6539\u7684\u5bb9\u5668\u4e3a\uff1azabbix-nginx https:\/\/blog<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,18,33],"tags":[],"yoast_head":"\nZabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\" \/>\n<meta property=\"og:description\" content=\"1.\u4e2d\u6587\u4e71\u7801\u95ee\u9898 \u5177\u4f53\u6b65\u9aa4\u53c2\u8003 \u4e00\u4e0b\u94fe\u63a5\uff1a\u9700\u8981\u4fee\u6539\u7684\u5bb9\u5668\u4e3a\uff1azabbix-nginx https:\/\/blog\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-17T01:55:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-17T01:58:11+00:00\" \/>\n<meta name=\"author\" content=\"\u7ba1\u7406\u5458\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/\"},\"author\":{\"name\":\"\u7ba1\u7406\u5458\",\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\"},\"headline\":\"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898\",\"datePublished\":\"2020-03-17T01:55:30+00:00\",\"dateModified\":\"2020-03-17T01:58:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/\"},\"wordCount\":14,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\"},\"articleSection\":[\"Linux\",\"Linux\u670d\u52a1\",\"zabbix\"],\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/\",\"url\":\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/\",\"name\":\"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\",\"isPartOf\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#website\"},\"datePublished\":\"2020-03-17T01:55:30+00:00\",\"dateModified\":\"2020-03-17T01:58:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.linuxdevops.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\/\/www.linuxdevops.cn\/linux\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.linuxdevops.cn\/#website\",\"url\":\"https:\/\/www.linuxdevops.cn\/\",\"name\":\"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\",\"description\":\"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\u7b14\u8bb0\",\"publisher\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\"},\"alternateName\":\"linuxdevops\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.linuxdevops.cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1\",\"name\":\"\u7ba1\u7406\u5458\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg\",\"contentUrl\":\"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg\",\"width\":512,\"height\":512,\"caption\":\"\u7ba1\u7406\u5458\"},\"logo\":{\"@id\":\"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/\"},\"description\":\"\u7ba1\u7406\u5458\",\"url\":\"https:\/\/www.linuxdevops.cn\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/","og_locale":"zh_CN","og_type":"article","og_title":"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","og_description":"1.\u4e2d\u6587\u4e71\u7801\u95ee\u9898 \u5177\u4f53\u6b65\u9aa4\u53c2\u8003 \u4e00\u4e0b\u94fe\u63a5\uff1a\u9700\u8981\u4fee\u6539\u7684\u5bb9\u5668\u4e3a\uff1azabbix-nginx https:\/\/blog","og_url":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/","og_site_name":"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","article_published_time":"2020-03-17T01:55:30+00:00","article_modified_time":"2020-03-17T01:58:11+00:00","author":"\u7ba1\u7406\u5458","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/#article","isPartOf":{"@id":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/"},"author":{"name":"\u7ba1\u7406\u5458","@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1"},"headline":"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898","datePublished":"2020-03-17T01:55:30+00:00","dateModified":"2020-03-17T01:58:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/"},"wordCount":14,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1"},"articleSection":["Linux","Linux\u670d\u52a1","zabbix"],"inLanguage":"zh-CN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/","url":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/","name":"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","isPartOf":{"@id":"https:\/\/www.linuxdevops.cn\/#website"},"datePublished":"2020-03-17T01:55:30+00:00","dateModified":"2020-03-17T01:58:11+00:00","breadcrumb":{"@id":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxdevops.cn\/2020\/03\/small-problems-in-zabbix-docker-container-deployment\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.linuxdevops.cn\/"},{"@type":"ListItem","position":2,"name":"Linux","item":"https:\/\/www.linuxdevops.cn\/linux\/"},{"@type":"ListItem","position":3,"name":"Zabbix- docker\u5bb9\u5668\u90e8\u7f72\u4e2d\u7684\u5c0f\u95ee\u9898"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxdevops.cn\/#website","url":"https:\/\/www.linuxdevops.cn\/","name":"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4","description":"Linux\u81ea\u52a8\u5316\u8fd0\u7ef4\u7b14\u8bb0","publisher":{"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1"},"alternateName":"linuxdevops","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxdevops.cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":["Person","Organization"],"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/3e206335d5796fdd8679e449df72a0d1","name":"\u7ba1\u7406\u5458","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/","url":"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg","contentUrl":"https:\/\/www.linuxdevops.cn\/wp-content\/uploads\/2019\/07\/cropped-index.jpg","width":512,"height":512,"caption":"\u7ba1\u7406\u5458"},"logo":{"@id":"https:\/\/www.linuxdevops.cn\/#\/schema\/person\/image\/"},"description":"\u7ba1\u7406\u5458","url":"https:\/\/www.linuxdevops.cn\/author\/root\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts\/653"}],"collection":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/comments?post=653"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts\/653\/revisions"}],"predecessor-version":[{"id":656,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/posts\/653\/revisions\/656"}],"wp:attachment":[{"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/media?parent=653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/categories?post=653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxdevops.cn\/wp-json\/wp\/v2\/tags?post=653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}