{"id":840,"date":"2022-07-04T10:07:52","date_gmt":"2022-07-04T02:07:52","guid":{"rendered":"http:\/\/www.rchen.top\/?p=840"},"modified":"2022-07-04T10:09:13","modified_gmt":"2022-07-04T02:09:13","slug":"zabbix%e6%b3%a8%e5%86%8c-%e8%87%aa%e5%8a%a8%e6%b3%a8%e5%86%8c%e4%b8%8e%e4%b8%bb%e5%8a%a8%e5%8f%91%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.rchen.top\/?p=840","title":{"rendered":"zabbix\u6ce8\u518c-\u81ea\u52a8\u6ce8\u518c\u4e0e\u4e3b\u52a8\u53d1\u73b0"},"content":{"rendered":"<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span style=\"font-weight: bold;\">\u529f\u80fd\u8bf4\u660e\uff1a<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span style=\"font-weight: bold;\">\u81ea\u52a8\u53d1\u73b0\uff1a<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">zabbix Server\u4e3b\u52a8\u53d1\u73b0\u6240\u6709\u5ba2\u6237\u7aef\uff0c\u7136\u540e\u5c06\u5ba2\u6237\u7aef\u767b\u8bb0\u81ea\u5df1\u7684\u5c0f\u672c\u672c\u4e0a\uff0c\u7f3a\u70b9zabbix server\u538b\u529b\u5c71\u5927\uff08\u7f51\u6bb5\u5927\uff0c\u5ba2\u6237\u7aef\u591a\uff09\uff0c\u65f6\u95f4\u6d88\u8017\u591a\u3002<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span style=\"font-weight: bold;\">\u81ea\u52a8\u6ce8\u518c\uff1a<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"en-US\">zabbix Server <\/span><span lang=\"zh-CN\">\u4e0a\u914d\u7f6e\u597d\u6ce8\u518c\u6a21\u677f\uff0c<\/span><span lang=\"en-US\">z<\/span><span lang=\"zh-CN\">abbix agent\u4e3b\u52a8\u5230zabbix Server\u4e0a\u62a5\u5230\uff0c\u767b\u8bb0\uff1b\u7f3a\u70b9agent\u6709\u53ef\u80fd\u627e\u4e0d\u5230Server\uff08\u914d\u7f6e\u51fa\u9519\uff09<\/span><\/p>\n<p lang=\"x-none\" style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u88ab\u52a8\u6a21\u5f0f\uff1a\u9ed8\u8ba4 agent\u88abserver\u6293\u53d6\u6570\u636e \uff08\u90fd\u662f\u5728agent\u7684\u7acb\u573a\u4e0a\u8bf4\uff09<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u4e3b\u52a8\u6a21\u5f0f\uff1aagent\u4e3b\u52a8\u5c06\u6570\u636e\u53d1\u5230server\u7aef \uff08\u90fd\u662f\u5728agent\u7684\u7acb\u573a\u4e0a\u8bf4\uff09<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u00a0 \u00a0\u00a0\u00a0\u6ce8\u610f\uff1a\u00a0\u4e24\u79cd\u6a21\u5f0f\u90fd\u662f\u5728agent\u4e0a\u8fdb\u884c\u914d\u7f6e<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u00a0 \u00a0\u00a0\u00a0zabbix\u00a0\u7684\u4f7f\u7528\u8981\u5728hosts\u6587\u4ef6\u4e2d\u9884\u5148\u505a\u597d\u4e3b\u673a\u540d\u7684\u89e3\u6790<\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: Calibri; font-size: 12.0pt;\">\n<p style=\"margin: 0in; font-size: 12.0pt;\"><span lang=\"en-US\" style=\"font-weight: bold; font-family: Calibri;\">1<\/span><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">\u3001<\/span><span lang=\"en-US\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">Zabbix<\/span><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">\u670d\u52a1\u5668\u914d\u7f6e\u81ea\u52a8\u6ce8\u518c\uff1a<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">\u914d\u7f6e<\/span><span lang=\"en-US\">&#8211;<\/span><span lang=\"zh-CN\">\u52a8\u4f5c<\/span><span lang=\"en-US\">&#8211;<\/span><span lang=\"zh-CN\">\u4e8b\u4ef6\u6e90<\/span><span lang=\"en-US\">&#8211;<\/span><span lang=\"zh-CN\">\u81ea\u52a8\u6ce8\u518c<\/span><span lang=\"en-US\">&#8211;<\/span><span lang=\"zh-CN\">\u521b\u5efa\u52a8\u4f5c<\/span><\/p>\n<p style=\"margin: 0in;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-841\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/07\/Pasted-3.png\" alt=\"\" width=\"942\" height=\"455\" \/><\/p>\n<p style=\"margin: 0in; font-size: 12.0pt;\"><span lang=\"en-US\" style=\"font-weight: bold; font-family: Calibri;\">2<\/span><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">\u3001<\/span><span lang=\"en-US\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">linux<\/span><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">\u5ba2\u6237\u7aef<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">setenforce 0<\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">vi \/etc\/zabbix_agent.conf<\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: Calibri; font-size: 12.0pt;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt; color: red;\"><span style=\"font-weight: bold;\">PidFile=\/var\/run\/zabbix\/zabbix_agentd.pid<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt; color: red;\"><span style=\"font-weight: bold;\">LogFile=\/var\/log\/zabbix\/zabbix_agentd.log<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt; color: red;\"><span style=\"font-weight: bold;\">LogFileSize=1<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt; color: red;\"><span style=\"font-weight: bold;\">EnableRemoteCommands=1<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt; color: red;\"><span style=\"font-weight: bold;\">LogRemoteCommands=1<\/span><\/p>\n<p style=\"margin: 0in; font-size: 12.0pt; color: red;\"><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">Server=<\/span><span lang=\"en-US\" style=\"font-weight: bold; font-family: Calibri;\">10.0.102.123<\/span><\/p>\n<p style=\"margin: 0in; font-size: 12.0pt; color: red;\"><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">ServerActive=<\/span><span lang=\"en-US\" style=\"font-weight: bold; font-family: Calibri;\">10.0.102.123<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt; color: red;\"><span style=\"font-weight: bold;\">HostnameItem=system.hostname<\/span><\/p>\n<p style=\"margin: 0in; font-size: 12.0pt; color: red;\"><span lang=\"en-US\" style=\"font-weight: bold; font-family: Calibri;\">#<\/span><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">Hostname=<\/span><span lang=\"en-US\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">kingdee-easapp<\/span><\/p>\n<p style=\"margin: 0in; font-size: 12.0pt; color: red;\"><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">HostMetadata=<\/span><span lang=\"en-US\" style=\"font-weight: bold; font-family: Calibri;\">aiit_linux<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt; color: red;\"><span style=\"font-weight: bold;\">UnsafeUserParameters=1<\/span><\/p>\n<p lang=\"x-none\" style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">\u542f\u52a8<\/span><span lang=\"en-US\">agent<\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt; color: red;\"><span style=\"font-weight: bold;\">service zabbix-agent start <\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt; color: red;\"><span style=\"font-weight: bold;\">chkconfig zabbix-agent on<\/span><\/p>\n<p style=\"margin: 0in; font-size: 12.0pt;\"><span lang=\"zh-CN\" style=\"font-family: \u7b49\u7ebf;\">\u6ce8\uff1a\u5728\u81ea\u52a8\u6ce8\u518c\u65f6<\/span> <span lang=\"zh-CN\" style=\"font-family: \u7b49\u7ebf;\">\u9700\u8981\u66f4\u6539\u4e3b\u673a\u540d\uff0c\u6709\u91cd\u590d\u7684\u4e3b\u673a\u540d\u65e0\u6cd5\u6ce8\u518c\u4e0a\uff0c\u4f8b\u5982<\/span><span lang=\"en-US\" style=\"font-family: Calibri;\">locathost<\/span><\/p>\n<p lang=\"x-none\" style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\n<p style=\"margin: 0in; font-size: 12.0pt;\"><span lang=\"en-US\" style=\"font-weight: bold; font-family: Calibri;\">3<\/span><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">\u3001<\/span><span lang=\"en-US\" style=\"font-weight: bold; font-family: Calibri;\">windows<\/span><span lang=\"zh-CN\" style=\"font-weight: bold; font-family: \u7b49\u7ebf;\">\u5ba2\u6237\u7aef<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">\u7f16\u8f91<\/span><span lang=\"en-US\">windows agent zabbix_agent.conf<\/span><span lang=\"zh-CN\">\u6587\u4ef6<\/span><span lang=\"en-US\">:<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"># This is a configuration file for Zabbix agent service (Windows)<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">############ GENERAL PARAMETERS #################<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">LogFile=c:\\zabbix_agentd.log<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">LogFileSize=1<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">Server=<\/span><span lang=\"en-US\">zabbix.etransfar.com<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">ServerActive=<\/span><span lang=\"en-US\">zabbix.etransfar.com<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">HostnameItem=system.hostname<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">HostMetadata=<\/span><span lang=\"en-US\">transfar_400<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"en-US\">#<\/span><span lang=\"zh-CN\">\u9996\u6b21\u5b89\u88c5<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">C:\\Windows\\system32&gt;C:\\zabbix\\zabbix_agentd.exe -i -c C:\\zabbix\\zabbix_agentd.win.conf<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">C:\\Windows\\system32&gt;C:\\zabbix\\zabbix_agentd.exe -s -c C:\\zabbix\\zabbix_agentd.win.conf<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"en-US\">#<\/span><span lang=\"zh-CN\">\u91cd\u542f\u670d\u52a1<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">C:\\Users\\Administrator&gt;c:<\/span><span lang=\"en-US\">\\<\/span><span lang=\"zh-CN\">zabbix<\/span><span lang=\"en-US\">\\<\/span><span lang=\"zh-CN\">zabbix_agentd.exe &#8211;st<\/span><span lang=\"en-US\">op<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">C:\\Users\\Administrator&gt;c:<\/span><span lang=\"en-US\">\\<\/span><span lang=\"zh-CN\">zabbix<\/span><span lang=\"en-US\">\\<\/span><span lang=\"zh-CN\">zabbix_agentd.exe &#8211;st<\/span><span lang=\"en-US\">art<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u529f\u80fd\u8bf4\u660e\uff1a \u81ea\u52a8\u53d1\u73b0\uff1a zabbix Server\u4e3b\u52a8\u53d1\u73b0\u6240\u6709\u5ba2\u6237\u7aef\uff0c\u7136\u540e\u5c06\u5ba2\u6237\u7aef\u767b\u8bb0\u81ea\u5df1\u7684\u5c0f\u672c\u672c\u4e0a\uff0c\u7f3a\u70b9za [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":698,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[134],"tags":[102],"class_list":["post-840","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-134","tag-zabbix"],"_links":{"self":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=840"}],"version-history":[{"count":2,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/840\/revisions"}],"predecessor-version":[{"id":843,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/840\/revisions\/843"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/media\/698"}],"wp:attachment":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}