{"id":11303,"date":"2022-12-27T11:47:00","date_gmt":"2022-12-27T03:47:00","guid":{"rendered":"https:\/\/www.lwops.cn\/?p=11303"},"modified":"2022-12-27T11:47:01","modified_gmt":"2022-12-27T03:47:01","slug":"zabbix%e7%9b%91%e6%8e%a7docker%e5%ae%b9%e5%99%a8%e7%8a%b6%e6%80%81%e4%bf%a1%e6%81%af%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.lwops.cn\/index.php\/interflow\/technology\/11303","title":{"rendered":"zabbix\u76d1\u63a7docker\u5bb9\u5668\u72b6\u6001\u4fe1\u606f\u8be6\u89e3"},"content":{"rendered":"\n
\u672c\u7bc7\u6587\u7ae0\u9488\u5bf9zabbix\u00a0server\u5df2\u90e8\u7f72\u5b8c\u6210\u7684\u60c5\u51b5\u3002docker \u5bb9\u5668\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5e94\u7528\u5bb9\u5668\u5f15\u64ce\uff0c\u8ba9\u5f00\u53d1\u8005\u53ef\u4ee5\u4ee5\u7edf\u4e00\u7684\u65b9\u5f0f\u6253\u5305\u4ed6\u4eec\u7684\u5e94\u7528\u4ee5\u53ca\u4f9d\u8d56\u5305\u5230\u4e00\u4e2a\u53ef\u79fb\u690d\u7684\u5bb9\u5668\u4e2d\uff0c\u7136\u540e\u53d1\u5e03\u5230\u4efb\u4f55\u5b89\u88c5\u4e86docker\u5f15\u64ce\u7684\u670d\u52a1\u5668\u4e0a\uff08\u5305\u62ec\u6d41\u884c\u7684Linux<\/a>\u673a\u5668\u3001windows\u673a\u5668\uff09\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u865a\u62df\u5316<\/a>\u3002\u5728IT\u8fd0\u7ef4\u8fc7\u7a0b\u4e2d\u7ecf\u5e38\u9700\u8981\u76d1\u63a7docker \u5bb9\u5668\u72b6\u6001\uff0c\u4e0b\u9762\u8ba9\u6211\u4eec\u770b\u770b\u5982\u4f55\u501f\u52a9zabbix\u76d1\u63a7docker\u5bb9\u5668\u7684\u72b6\u6001\u4fe1\u606f\u3002<\/p>\n\n\n\n \u4ee5centos 7\u4e3a\u4f8b<\/p>\n\n\n\n rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/5.4\/rhel\/7\/x86_64\/zabbix-release-5.4-1.el7.noarch.rpm<\/p>\n\n\n\n yum clean all<\/p>\n\n\n\n yum install zabbix-agent<\/p>\n\n\n\n \u542f\u52a8zabbix agent\u5e76\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u542f<\/p>\n\n\n\n systemctl start zabbix-agent<\/p>\n\n\n\n systemctl enable zabbix-agent<\/p>\n\n\n\n \u67e5\u770bzabbix agent\u662f\u5426\u542f\u52a8<\/p>\n\n\n\n netstat\u00a0-anlp | grep 10050<\/p>\n\n\n\n1\uff0e\u5b89\u88c5zabbix agent\u670d\u52a1<\/h2>\n\n\n\n