{"id":1496,"date":"2020-07-09T14:47:09","date_gmt":"2020-07-09T11:47:09","guid":{"rendered":"http:\/\/supernahodka.ru\/?p=1496"},"modified":"2020-07-09T14:50:12","modified_gmt":"2020-07-09T11:50:12","slug":"%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-zabbix-agent-%d0%bd%d0%b0-clearos-centos","status":"publish","type":"post","link":"https:\/\/supernahodka.ru\/?p=1496","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Zabbix agent \u043d\u0430 ClearOS (CentOS)"},"content":{"rendered":"<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443, \u0432\u0435\u0440\u0441\u0438\u044e&#8230;<br \/>\n<a href=\"https:\/\/www.zabbix.com\/ru\/download\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.zabbix.com\/ru\/download<\/a><\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Zabbix (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 5.0 LTS) :<br \/>\n# rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/5.0\/rhel\/7\/x86_64\/zabbix-release-5.0-1.el7.noarch.rpm<\/p>\n<p>\u041e\u0447\u0438\u0449\u0430\u0435\u043c \u043a\u044d\u0448<br \/>\n# yum clean all<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Zabbix \u0430\u0433\u0435\u043d\u0442<br \/>\n# yum install zabbix-agent<\/p>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0430\u0433\u0435\u043d\u0442\u0430&nbsp;<em>\/etc\/zabbix\/zabbix_agentd.conf<\/em> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c&nbsp; \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 Zabbix:<br \/>\n# vim \/etc\/zabbix\/zabbix_agentd.conf \u0438\u043b\u0438 # nano \/etc\/zabbix\/zabbix_agentd.conf<\/p>\n<pre>= \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b c \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f\u043c\u0438 =\r\nSourceIP=10.10.1.2  # IP \u0430\u0434\u0440\u0435\u0441 host c Zabbix \u0430\u0433\u0435\u043d\u0442\u043e\u043c\r\nServer=192.168.0.50 # IP \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Zabbix\r\nServerActive=192.168.0.50 # IP \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Zabbix \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u0433\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435\r\nHostname=XXX  # \u0438\u043c\u044f \u0443\u0437\u043b\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0438\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0443\u0437\u043b\u0430 \u0441\u0435\u0442\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 Zabbix\r\n<\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0430\u0433\u0435\u043d\u0442 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443:<br \/>\n# systemctl start zabbix-agent<br \/>\n# systemctl enable zabbix-agent<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c (\u0435\u0441\u043b\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0440\u0430\u043d\u0435\u0435) \u0443\u0437\u0435\u043b \u0441\u0435\u0442\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 Zabbix. \u0418\u043c\u044f \u0443\u0437\u043b\u0430 \u0441\u0435\u0442\u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 hostname, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0432 zabbix_agentd.conf<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043b\u043e\u0433 \u0444\u0430\u0439\u043b \u0430\u0433\u0435\u043d\u0442\u0430 \u0434\u043b\u044f CentOS:<br \/>\n# cat \/var\/log\/zabbix\/zabbix_agentd.log<\/p>\n<p>\u0418\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u043b\u0443\u0436\u0431\u044b<br \/>\n# systemctl status zabbix-agent<\/p>\n<p>\u041d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439:<br \/>\n# systemctl stop zabbix-agent<br \/>\n# systemctl start zabbix-agent<br \/>\n# hostname &#8212;fqd \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0438\u043c\u044f host<\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;\">\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438<\/span><\/td>\n<td><script src=\"\/\/yastatic.net\/es5-shims\/0.0.2\/es5-shims.min.js\"><\/script><br \/>\n<script src=\"\/\/yastatic.net\/share2\/share.js\"><\/script><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"ya-share2\" data-services=\"vkontakte,facebook,odnoklassniki,moimir,gplus,twitter,linkedin,lj,viber,whatsapp,skype,telegram\">&nbsp;<\/div>\n<p>[instagram-feed num=5 cols=5 showfollow=true sortby=random showfollow=true followtext=&#187;\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f&#187; showheader=true]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443, \u0432\u0435\u0440\u0441\u0438\u044e&#8230; https:\/\/www.zabbix.com\/ru\/download \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Zabbix (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 5.0 LTS) : # rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/5.0\/rhel\/7\/x86_64\/zabbix-release-5.0-1.el7.noarch.rpm \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u043a\u044d\u0448 # yum clean all \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Zabbix \u0430\u0433\u0435\u043d\u0442 # yum install zabbix-agent \u0412 \u0444\u0430\u0439\u043b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1502,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"cwp_meta_box_check":"No","cwp_rev_product_name":"","cwp_rev_product_image":"","wppr_links":[],"cwp_rev_price":"","wppr_options":[],"wppr_pros":[],"wppr_cons":[],"ngg_post_thumbnail":0},"categories":[39],"tags":[305,303,304],"wppr_data":{"cwp_meta_box_check":"No"},"acf":[],"_links":{"self":[{"href":"https:\/\/supernahodka.ru\/index.php?rest_route=\/wp\/v2\/posts\/1496"}],"collection":[{"href":"https:\/\/supernahodka.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/supernahodka.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/supernahodka.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/supernahodka.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1496"}],"version-history":[{"count":8,"href":"https:\/\/supernahodka.ru\/index.php?rest_route=\/wp\/v2\/posts\/1496\/revisions"}],"predecessor-version":[{"id":1506,"href":"https:\/\/supernahodka.ru\/index.php?rest_route=\/wp\/v2\/posts\/1496\/revisions\/1506"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/supernahodka.ru\/index.php?rest_route=\/wp\/v2\/media\/1502"}],"wp:attachment":[{"href":"https:\/\/supernahodka.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/supernahodka.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/supernahodka.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}