{"id":359695,"date":"2024-05-21T00:37:58","date_gmt":"2024-05-21T00:37:58","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=359695"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=359695","title":{"rendered":"<span>\u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430 \u0431\u0430\u0437\u0435 Icinga2\/Web\/Director\/Grafana \u0437\u0430 5 \u043c\u0438\u043d\u0443\u0442<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0421\u0432\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u043c Icinga2 \u044f \u043d\u0430\u0447\u0430\u043b \u0432 2018-\u043c \u0433\u043e\u0434\u0443, \u0441\u043e \u0441\u0442\u0430\u0442\u0435\u0439 <a href=\"https:\/\/wiki.it-kb.ru\/icinga\" rel=\"noopener noreferrer nofollow\">IT-KB<\/a>, \u0437\u0430 \u0447\u0442\u043e \u0438\u043c \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c. \u0421\u0442\u0430\u0442\u044c\u0438 \u0431\u044b\u043b\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0435, \u043f\u043e\u0434 Debian 8. \u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b FreeBSD \u0438 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0432 <a href=\"https:\/\/www.bsdstore.ru\/ru\/about.html\" rel=\"noopener noreferrer nofollow\">CBSD JAIL<\/a>. \u0412 2020-\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u044e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043d\u043e \u043d\u0430 Debian 10. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u0442\u0435\u0439 \u0432 \u043b\u0438\u0447\u043d\u043e\u0439 WiKi. \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439, \u043b\u0435\u0433\u043a\u0438\u0439, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0448\u0438\u0440\u043e\u043a\u0438\u0435, <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=info.degois.damien.android.aNag&amp;hl=ru&amp;pli=1\" rel=\"noopener noreferrer nofollow\">\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u0434 Android<\/a> \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u044b\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439. \u041d\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 &#8212; \u0434\u0430\u0436\u0435 \u043f\u043e \u0441\u0432\u043e\u0438\u043c \u0437\u0430\u043c\u0435\u0442\u043a\u0430\u043c \u0432 WiKi \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432 \u043d\u043e\u0432\u043e\u0439 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0442 \u0447\u0430\u0441\u0430 \u0434\u043e \u0434\u0432\u0443\u0445 (\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 \u0443\u0436\u0435 \u0441 10-\u043a \u0448\u0442\u0443\u043a \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u0432).<\/p>\n<p>\u0413\u043e\u0434 \u043d\u0430\u0437\u0430\u0434 \u043c\u043d\u0435 \u0432\u0441\u0435 \u044d\u0442\u043e \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u0438 \u044f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043f\u0430\u0440\u0443 \u0434\u043d\u0435\u0439, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u044f\u0434 Ansible Playbook-\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0448\u0430\u0433\u043e\u0432 \u0441\u0434\u0435\u043b\u0430\u044e\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043d\u0438\u0436\u0435.<\/p>\n<h2>\u0427\u0442\u043e, \u0413\u0434\u0435 \u0438 \u0417\u0430\u0447\u0435\u043c \u0431\u0443\u0434\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c<\/h2>\n<p>\u041d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0430 Debian 12 (\u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e x64). \u041d\u0443\u0436\u043d\u043e \u043e\u0442 2 \u044f\u0434\u0435\u0440 \u0438 \u043e\u0442 2 \u0413\u0431 \u041e\u0417\u0423 (\u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0430 4 \u044f\u0434\u0440\u0430\u0445 \u0438 4 \u0413\u0431 \u041e\u0417\u0423 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u043b\u0435\u0433\u043a\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0430\u0440\u044b \u0441\u043e\u0442\u0435\u043d \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u043f\u0430\u0440\u044b \u0442\u044b\u0441\u044f\u0447 \u043c\u0435\u0442\u0440\u0438\u043a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u0430 1 \u0433\u043e\u0434 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 1-2 \u0413\u0431 (\u0431\u0430\u0437\u0430 influxdb \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c)). \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 4,5 \u0413\u0431 \u0437\u0430\u043d\u044f\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430. \u0415\u0441\u043b\u0438 \u043c\u044b \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043c \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 100 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 1000 \u043c\u0435\u0442\u0440\u0438\u043a) &#8212; \u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u044b\u0435 5 \u043b\u0435\u0442 \u043c\u044b \u0432\u0440\u044f\u0434 \u043b\u0438 \u0432\u044b\u043b\u0435\u0437\u0435\u043c \u0437\u0430 10-12 \u0413\u0431 \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u043e\u043f\u044b\u0442\u0443 (\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 FS).<\/p>\n<p>Icinga2 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0439. \u0427\u0442\u043e \u043f\u043e \u0438\u0442\u043e\u0433\u0443 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>Icinga2 &#8212; \u044f\u0434\u0440\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 (\u0441\u0430\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433)<\/p>\n<\/li>\n<li>\n<p>Icingaweb2 + Apache2 (\u043a\u0430\u043a WEB-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441)<\/p>\n<\/li>\n<li>\n<p>IcingaDB &#8212; \u043d\u043e\u0432\u044b\u0439 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0439 WEB-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0434\u043b\u044f <a href=\"https:\/\/icinga.com\/docs\/icinga-db\/latest\/doc\/01-About\/\" rel=\"noopener noreferrer nofollow\">\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430<\/a><\/p>\n<\/li>\n<li>\n<p>Icingadb-redis &#8212; \u0441\u0432\u043e\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Redis \u0434\u043b\u044f IcingaDB<\/p>\n<\/li>\n<li>\n<p>Icinga-director &#8212; WEB-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Icinga (\u0445\u043e\u0441\u0442\u043e\u0432, \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0442.\u0434.)<\/p>\n<\/li>\n<li>\n<p>MariaDB SQL &#8212; \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f 4-\u0445 \u043c\u0435\u043b\u043a\u0438\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0440\u0430\u0441\u0442\u0443\u0442 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c &#8212; \u043f\u043e \u0441\u0443\u0442\u0438 \u044d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Icinga\/Web\/Director\/IcingaDB)<\/p>\n<\/li>\n<li>\n<p>InfluxDB &#8212; \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a (\u0431\u0430\u0437\u0430 \u0440\u0430\u0441\u0442\u0435\u0442, \u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e &#8212; \u0443 \u043c\u0435\u043d\u044f \u0437\u0430 \u0433\u043e\u0434\u044b \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a \u0431\u0430\u0437\u044b \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 2-3 \u0413\u0431 \u043f\u043e \u0438\u0442\u043e\u0433\u0443 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442)<\/p>\n<\/li>\n<li>\n<p>Grafana &#8212; \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u0438\u0437 InfluxDB \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u0445 \u0432 IcingaWeb2<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, Icinga2 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u0438 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u0441 \u043d\u0443\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u0438\u0435 \u0447\u0430\u0441\u044b\/\u0434\u043d\u0438). \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f &#8212; \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0437\u0430 5 \u043c\u0438\u043d\u0443\u0442 \u0438 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u0441\u043f\u043e\u0442\u0435\u0442\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c )))<\/p>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Debian 12 \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438\u0437 Ansible PlayBook-\u043e\u0432<\/h2>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432 \u0441 Playbook-\u0430\u043c\u0438 \u0438 \u0434\u043e\u043f \u0444\u0430\u0439\u043b\u0430\u043c\u0438: <a href=\"https:\/\/disk.yandex.ru\/d\/LGLtAKpxeRdmdA\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u044f \u043f\u0440\u043e\u0432\u043e\u0436\u0443 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/root (\u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0430, \u0443\u0432\u044b). \u041b\u0438\u0441\u0442\u0438\u043d\u0433 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438:<\/p>\n<pre><code>cd \/root\/ tar -xpf Icinga2-Ansible-Debian12-09-11-2023.tar apt update apt install ansible ssh-keygen cd \/root\/.ssh\/ cat id_rsa.pub >> authorized_keys cp id_rsa \/root\/IcingaAnsible\/ cd \/root\/IcingaAnsible\/ ssh -i id_rsa root@127.0.0.1<\/code><\/pre>\n<p>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043b\u0438 \u0430\u0440\u0445\u0438\u0432, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Ansible, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u043a\u043b\u044e\u0447\u0438 SSH \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b, \u0437\u0430\u0448\u043b\u0438 \u043f\u043e SSH \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0444\u0430\u0439\u043b \/root\/.ssh\/known_hosts.<\/p>\n<h2>\u041f\u0430\u0440\u043e\u043b\u0438<\/h2>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u043d\u043e\u0433\u0438\u0445 Playbook-\u043e\u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u043f\u0430\u0440\u043e\u043b\u0438 (\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0442 MariaDB &#8212; \u043e\u0442 root, \u043e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u044e\u0437\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 IcingaIDO, IcingaWeb, Director, IcingaDB). \u041f\u043b\u044e\u0441 \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d Blowfish HASH \u043e\u0442 \u044e\u0437\u0435\u0440\u0430 icingaadmin. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432\u0435\u0437\u0434\u0435 \u044f \u0443\u043a\u0430\u0437\u0430\u043b \u043f\u0430\u0440\u043e\u043b\u044c: <strong>icingapassword<\/strong>.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 (<strong>grep -R -i &#171;_password:&#187; *<\/strong>) \u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u0445 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u0438:<\/p>\n<pre><code>0-icinga.yml:    mysql_root_password: icingapassword 0-icinga.yml:    icingaweb_password: icingapassword 0-icinga.yml:    icingaadmin_password: $2y$10$Vh8cot0heVpwq76N48WiAe3b60N\/rNfzFZby.KQF0szzCqRjlOu9K 2-icingaweb-init-configuration.yml:    icingaweb_password: icingapassword 2-icingaweb-init-configuration.yml:    director_password: icingapassword 2-icingaweb-init-configuration.yml:    icingadb_password: icingapassword 3-influx.yml:    influx_password: icingapassword 4-director.yml:    mysql_root_password: icingapassword 7-icingadb.yml:    icingadb_password: icingapassword<\/code><\/pre>\n<h2>\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a Playbook-\u043e\u0432<\/h2>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 ansible-playbook 0-icinga.yml (\u0434\u0430\u043b\u0435\u0435 1-icingaweb-modules.yml \u0438 \u0442.\u0434.).<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0438\u0445 8 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432:<\/p>\n<details class=\"spoiler\">\n<summary>Hidden text<\/summary>\n<div class=\"spoiler__content\">\n<p>root@icinga9:~\/IcingaAnsible# ansible-playbook 0-icinga.yml<\/p>\n<p>PLAY [debian] **********************************************************************************************************************************************************************<\/p>\n<p>TASK [Gathering Facts] *************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Install Icinga2 Software] ****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Change root password] ********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create ~\/.my.cnf] ************************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Insert into ~\/.my.cnf] *******************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [SQL Flush Privileges] ********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Remove test database] ********************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Enable ReWrite Apache Module] ************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Set date.timezone in PHP configuration] **************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable Icinga2 feature &#8212; COMMAND] ********************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Get random password for IDO module from ido-mysql.conf] **********************************************************************************************************************<br \/> changed: [debian -> 127.0.0.1]<\/p>\n<p>TASK [set_fact] ********************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [debug] ***********************************************************************************************************************************************************************<br \/> ok: [debian] => {<br \/> &#171;ido_password&#187;: &#171;d6qyFduTCvpi&#187;<br \/> }<\/p>\n<p>TASK [Drop IDO Database] ***********************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Create Database for IDO Icinga Module] ***************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Fill icinga2 database from Template] *****************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create SQL User icinga2 for Access to IDO Database] **************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Flush privileges in SQL] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable Icinga2 feature &#8212; IDO-MYSQL] ******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Restart Icinga2 Service] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Drop Icingaweb2 Database] ****************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Create Database for Icingaweb2 Module] ***************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create SQL Database for Icingaweb2] ******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Grant Access for Database for Icingaweb2] ************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create Icingaweb2 User in Database] ******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Flush privileges in SQL] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Restart Apache2 Service] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>PLAY RECAP *************************************************************************************************************************************************************************<br \/> debian                     : ok=27   changed=21   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0<\/p>\n<p>root@icinga9:~\/IcingaAnsible# ansible-playbook 1-icingaweb-modules.yml<\/p>\n<p>PLAY [debian] **********************************************************************************************************************************************************************<\/p>\n<p>TASK [Gathering Facts] *************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Install Grafana module for Icingaweb2] ***************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install IPL module for Icingaweb2] *******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install Incubator module for Icingaweb2] *************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install Reactbundle module for Icingaweb2] ***********************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install Director module for Icingaweb2] **************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable Monitoring Module in Icingaweb2] **************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>PLAY RECAP *************************************************************************************************************************************************************************<br \/> debian                     : ok=7    changed=6    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0<\/p>\n<p>root@icinga9:~\/IcingaAnsible# ansible-playbook 2-icingaweb-init-configuration.yml<\/p>\n<p>PLAY [debian] **********************************************************************************************************************************************************************<\/p>\n<p>TASK [Gathering Facts] *************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Install authentication.ini] **************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install config.ini] **********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install groups.ini] **********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Get random password for IDO module from ido-mysql.conf] **********************************************************************************************************************<br \/> changed: [debian -> 127.0.0.1]<\/p>\n<p>TASK [set_fact] ********************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [debug] ***********************************************************************************************************************************************************************<br \/> ok: [debian] => {<br \/> &#171;ido_password&#187;: &#171;d6qyFduTCvpi&#187;<br \/> }<\/p>\n<p>TASK [Install resources.ini] *******************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install roles.ini] ***********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create monitoring cfg folder] ************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable API Function in Icinga2] **********************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Get random password for API Icinga2 after api setup] *************************************************************************************************************************<br \/> changed: [debian -> 127.0.0.1]<\/p>\n<p>TASK [set_fact] ********************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [debug] ***********************************************************************************************************************************************************************<br \/> ok: [debian] => {<br \/> &#171;api_password&#187;: &#171;cd53fe09a2bca6d7&#187;<br \/> }<\/p>\n<p>TASK [Create backends.ini for module monitoring] ***********************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create commandtransports.ini for module monitoring] **************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create config.ini for module monitoring] *************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>PLAY RECAP *************************************************************************************************************************************************************************<br \/> debian                     : ok=17   changed=12   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0<\/p>\n<p>root@icinga9:~\/IcingaAnsible# ansible-playbook 3-influx.yml<\/p>\n<p>PLAY [debian] **********************************************************************************************************************************************************************<\/p>\n<p>TASK [Gathering Facts] *************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Install InfluxDB Software] ***************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create InfluxDB Database for Icinga Metrics] *********************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create InfluxDB User] ********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Grant Access for User to Database] *******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable InfluxDB Module in Icinga Service] ************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable InfluxDB in Icinga] ***************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Restart Icinga Service] ******************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>PLAY RECAP *************************************************************************************************************************************************************************<br \/> debian                     : ok=8    changed=7    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0<\/p>\n<p>root@icinga9:~\/IcingaAnsible# ansible-playbook 4-director.yml<\/p>\n<p>PLAY [debian] **********************************************************************************************************************************************************************<\/p>\n<p>TASK [Gathering Facts] *************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Remove director database if exists] ******************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Create database for Director Icingaweb Module] *******************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create user for Director Access] *********************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Grant access user for director database] *************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>PLAY RECAP *************************************************************************************************************************************************************************<br \/> debian                     : ok=5    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0<\/p>\n<p>root@icinga9:~\/IcingaAnsible# ansible-playbook 5-director-kickstart.yml<\/p>\n<p>PLAY [debian] **********************************************************************************************************************************************************************<\/p>\n<p>TASK [Gathering Facts] *************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Get random password for API Icinga2 after api setup] *************************************************************************************************************************<br \/> changed: [debian -> 127.0.0.1]<\/p>\n<p>TASK [set_fact] ********************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [debug] ***********************************************************************************************************************************************************************<br \/> ok: [debian] => {<br \/> &#171;api_password&#187;: &#171;cd53fe09a2bca6d7&#187;<br \/> }<\/p>\n<p>TASK [Get Icinga hostname] *********************************************************************************************************************************************************<br \/> changed: [debian -> 127.0.0.1]<\/p>\n<p>TASK [set_fact] ********************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [debug] ***********************************************************************************************************************************************************************<br \/> ok: [debian] => {<br \/> &#171;icinga_hostname&#187;: &#171;icinga9.test.local&#187;<br \/> }<\/p>\n<p>TASK [Create director kickstart cfg folder] ****************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create config.ini to set director database name] *****************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create kickstart.ini for configure director] *********************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Populate Director Database] **************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Kickstat Director] ***********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>PLAY RECAP *************************************************************************************************************************************************************************<br \/> debian                     : ok=12   changed=7    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0<\/p>\n<p>root@icinga9:~\/IcingaAnsible# ansible-playbook 6-grafana-dpkg-install.yml<\/p>\n<p>PLAY [debian] **********************************************************************************************************************************************************************<\/p>\n<p>TASK [Gathering Facts] *************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Install grafana dependencies] ************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Download Grafana Debian Package from Custom URL Source] **********************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install Grafana Server] ******************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Reload systemctl Daemons Lists] **********************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable Grafana Service] ******************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Set allow_embedding in grafana.ini] ******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable anonymous access] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable anonymous name] *******************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable anonymous role] *******************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Start Grafana Server] ********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install Grafana plugin &#8212; grafana-image-renderer] *****************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Final change all permission on Icingaweb2 folder] ****************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Restart Grafana Service] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>PLAY RECAP *************************************************************************************************************************************************************************<br \/> debian                     : ok=14   changed=13   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0<\/p>\n<p>root@icinga9:~\/IcingaAnsible# ansible-playbook 7-icingadb.yml<\/p>\n<p>PLAY [debian] **********************************************************************************************************************************************************************<\/p>\n<p>TASK [Gathering Facts] *************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Add IcingaDB Repository] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Add APT Key from Icinga Repository] ******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Install IcingaDB and other services] *****************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Drop IDO Database] ***********************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Drop user] *******************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [FLUSH PRIVIGELES] ************************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create icingadb database] ****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create user icingadb] ********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create icingadb database] ****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Fill SQL Database for IcingaDB] **********************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Set password for icingadb cfg] ***********************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable icingadb feature] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Restart Icinga2 Service] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create icingadb modules folder] **********************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create config.ini for module icingadb] ***************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create redis.ini for module icingadb] ****************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable Icingaweb2 module IcingaDB] *******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Restart IcingaDB Service] ****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>PLAY RECAP *************************************************************************************************************************************************************************<br \/> debian                     : ok=19   changed=16   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0<\/p>\n<\/div>\n<\/details>\n<h2>\u0414\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 Grafana<\/h2>\n<p>\u0423\u0432\u044b, \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430 100% \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 (\u0445\u043e\u0442\u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f). \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0448\u0430\u0433\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a Grafana \u043d\u0430 \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443) \u043d\u0430 \u043f\u043e\u0440\u0442 3000, \u043b\u043e\u0433\u0438\u043d-\u043f\u0430\u0440\u043e\u043b\u044c admin\/admin<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f Grafana (InfluxDB) \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Configuration -> Data Sources -> Add -> InfluxDB &#8212; \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0438\u0436\u0435:<\/p>\n<\/li>\n<\/ul>\n<pre><code>URL:http:\/\/localhost:8086 Database:icinga2 User:icinga2 Password:icingapassword<\/code><\/pre>\n<ul>\n<li>\n<p>\u0417\u0430\u0439\u0442\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Dashboard -> Import \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 Dashboard \u043f\u043e <a href=\"https:\/\/raw.githubusercontent.com\/Mikesch-mp\/icingaweb2-module-grafana\/master\/dashboards\/influxdb\/icinga2-default.json\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>. \u041f\u0440\u0438  \u0438\u043c\u043f\u043e\u0440\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0448 InfluxDB \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0438\u043c\u043f\u043e\u0440\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442, \u043e\u043d \u0441\u0440\u0430\u0437\u0443 \u0432 Grafana \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0437 URL \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u044b\u0447\u043b\u0435\u043d\u0438\u0442\u044c \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 ID \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e Dashboard-\u0430 (\u0441\u043c. \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435)<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0fd\/773\/6ea\/0fd7736eaf7ddc22dd0db4159066da1c.png\" width=\"749\" height=\"406\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0fd\/773\/6ea\/0fd7736eaf7ddc22dd0db4159066da1c.png\"\/><\/figure>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c: <strong>3azngr4Iz<\/strong>. \u041d\u043e \u0443 \u0412\u0430\u0441 100% \u0431\u0443\u0434\u0435\u0442 \u043e\u043d \u0434\u0440\u0443\u0433\u043e\u0439 \u0432 \u0412\u0430\u0448\u0435\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438. \u042d\u0442\u043e\u0442 ID \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f Icingaweb2 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 Grafana.<\/p>\n<h2>\u0414\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 WEB-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438 \u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/h2>\n<p>\u0412\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: <a href=\"http:\/\/X.X.X.X\/icingaweb2\/\" rel=\"noopener noreferrer nofollow\">http:\/\/X.X.X.X\/icingaweb2\/<\/a>. Login: icingaadmin, \u043f\u0430\u0440\u043e\u043b\u044c \u043b\u0438\u0431\u043e icingapassword (\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u0445\u043e\u0434\u0430 \u0435\u0433\u043e \u0441\u0440\u0430\u0437\u0443 \u0441\u043c\u0435\u043d\u0438\u0442\u044c. \u041b\u0438\u0431\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c Blowfish \u0445\u044d\u0448 \u0438 \u0435\u0433\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e icingaadmin_password). <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/353\/11d\/7a2\/35311d7a239179ffe917b20df7655d90.png\" width=\"1350\" height=\"718\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/353\/11d\/7a2\/35311d7a239179ffe917b20df7655d90.png\"\/><\/figure>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044f Director \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 (\u0438\u0434\u0435\u0442 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Icinga Director -> Activity Log -> Deploy 253 pending changes).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b91\/138\/88c\/b9113888cbe861123c27a216152e2bd2.png\" width=\"1044\" height=\"653\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b91\/138\/88c\/b9113888cbe861123c27a216152e2bd2.png\"\/><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0449\u0435\u043c \u0441\u043b\u0435\u0432\u0430 \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0438\u0437\u0443 \u0448\u0435\u0441\u0442\u0435\u0440\u0435\u043d\u043a\u0443, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0443\u043d\u043a\u0442 <strong>Modules<\/strong>. \u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Grafana \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u0435\u043d. \u0416\u043c\u0435\u043c \u0435\u0433\u043e, \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435(\u0444\u0440\u0435\u0439\u043c\u0435) \u0440\u044f\u0434\u043e\u043c \u0441 \u0441\u043b\u043e\u0432\u043e\u043c <strong>Disable<\/strong> \u0436\u043c\u0435\u043c \u043d\u0430 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c. \u0418 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u043e\u0434\u0443\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d (\u0430 \u044d\u0442\u043e \u043f\u043e \u0441\u0443\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <strong>\/etc\/icingaweb2\/enabledModules\/<\/strong>), \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b <strong>Configuration<\/strong> (\u043e\u043d \u043d\u0430\u0447\u043d\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f).<\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u044f, \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fce\/fb9\/b91\/fcefb9b91b31f95a01db27a4ac865b44.png\" width=\"1143\" height=\"713\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fce\/fb9\/b91\/fcefb9b91b31f95a01db27a4ac865b44.png\"\/><\/figure>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b: Icinga DB (\u043b\u0435\u0432\u044b\u0439 \u0444\u0440\u0435\u0439\u043c), \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b Services, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u0430\u043a\u043e\u0439 \u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0435\u0440\u0432\u0438\u0441 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, procs &#8212; \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432). \u0412\u0438\u0434\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/95a\/384\/66f\/95a38466fc9706cfe0758d122c6e9cce.png\" alt=\"\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0434 - \u0440\u0430\u0431\u043e\u0442\u0430 Grafana \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 IcingaWeb2\" title=\"\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0434 - \u0440\u0430\u0431\u043e\u0442\u0430 Grafana \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 IcingaWeb2\" width=\"1915\" height=\"1015\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/95a\/384\/66f\/95a38466fc9706cfe0758d122c6e9cce.png\"\/><\/p>\n<div><figcaption>\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0434 &#8212; \u0440\u0430\u0431\u043e\u0442\u0430 Grafana \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 IcingaWeb2<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0443 \u0432\u043e\u0442 \u0438 \u0432\u0441\u0435 &#8212; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u0443\u0447\u0430\u0442\u044c, \u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c Icinga2 \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0434\u0443\u043b\u044c Icinga Director \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 (\u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438, \u0441\u043b\u0443\u0436\u0431\u0430\u043c\u0438, \u0445\u043e\u0441\u0442\u0430\u043c\u0438 \u0438 \u0442.\u0434.). \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b &#8212; \u0435\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/blog.it-kb.ru\/2017\/01\/25\/deploy-and-configure-icinga-2-on-debian-8-6-part-6-icinga-director-1-2-0-deployment-and-configuration-of-zones-commands-services-host-templates\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043e\u043f\u0438\u0448\u0435\u0448\u044c<\/a>.<\/p>\n<h2>\u0418\u0442\u043e\u0433\u0438<\/h2>\n<p>\u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043c\u043e\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u043f\u043e\u0434\u0432\u0438\u0433\u043d\u0435\u0442 \u0412\u0430\u0441 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0442\u044c 10-15 \u043c\u0438\u043d\u0443\u0442 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e (\u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e \u043a\u043e\u043d\u0435\u0447\u043d\u043e) \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430. \u0423\u0441\u043f\u0435\u0445\u043e\u0432!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/772756\/\"> https:\/\/habr.com\/ru\/articles\/772756\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0421\u0432\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u043c Icinga2 \u044f \u043d\u0430\u0447\u0430\u043b \u0432 2018-\u043c \u0433\u043e\u0434\u0443, \u0441\u043e \u0441\u0442\u0430\u0442\u0435\u0439 <a href=\"https:\/\/wiki.it-kb.ru\/icinga\" rel=\"noopener noreferrer nofollow\">IT-KB<\/a>, \u0437\u0430 \u0447\u0442\u043e \u0438\u043c \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c. \u0421\u0442\u0430\u0442\u044c\u0438 \u0431\u044b\u043b\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0435, \u043f\u043e\u0434 Debian 8. \u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b FreeBSD \u0438 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0432 <a href=\"https:\/\/www.bsdstore.ru\/ru\/about.html\" rel=\"noopener noreferrer nofollow\">CBSD JAIL<\/a>. \u0412 2020-\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u044e \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043d\u043e \u043d\u0430 Debian 10. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u0442\u0435\u0439 \u0432 \u043b\u0438\u0447\u043d\u043e\u0439 WiKi. \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439, \u043b\u0435\u0433\u043a\u0438\u0439, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0448\u0438\u0440\u043e\u043a\u0438\u0435, <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=info.degois.damien.android.aNag&amp;hl=ru&amp;pli=1\" rel=\"noopener noreferrer nofollow\">\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u0434 Android<\/a> \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u044b\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439. \u041d\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 &#8212; \u0434\u0430\u0436\u0435 \u043f\u043e \u0441\u0432\u043e\u0438\u043c \u0437\u0430\u043c\u0435\u0442\u043a\u0430\u043c \u0432 WiKi \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432 \u043d\u043e\u0432\u043e\u0439 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0442 \u0447\u0430\u0441\u0430 \u0434\u043e \u0434\u0432\u0443\u0445 (\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 \u0443\u0436\u0435 \u0441 10-\u043a \u0448\u0442\u0443\u043a \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u0432).<\/p>\n<p>\u0413\u043e\u0434 \u043d\u0430\u0437\u0430\u0434 \u043c\u043d\u0435 \u0432\u0441\u0435 \u044d\u0442\u043e \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u0438 \u044f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043f\u0430\u0440\u0443 \u0434\u043d\u0435\u0439, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u044f\u0434 Ansible Playbook-\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0448\u0430\u0433\u043e\u0432 \u0441\u0434\u0435\u043b\u0430\u044e\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043d\u0438\u0436\u0435.<\/p>\n<h2>\u0427\u0442\u043e, \u0413\u0434\u0435 \u0438 \u0417\u0430\u0447\u0435\u043c \u0431\u0443\u0434\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c<\/h2>\n<p>\u041d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0430 Debian 12 (\u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e x64). \u041d\u0443\u0436\u043d\u043e \u043e\u0442 2 \u044f\u0434\u0435\u0440 \u0438 \u043e\u0442 2 \u0413\u0431 \u041e\u0417\u0423 (\u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0430 4 \u044f\u0434\u0440\u0430\u0445 \u0438 4 \u0413\u0431 \u041e\u0417\u0423 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u043b\u0435\u0433\u043a\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0430\u0440\u044b \u0441\u043e\u0442\u0435\u043d \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u043f\u0430\u0440\u044b \u0442\u044b\u0441\u044f\u0447 \u043c\u0435\u0442\u0440\u0438\u043a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u0430 1 \u0433\u043e\u0434 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 1-2 \u0413\u0431 (\u0431\u0430\u0437\u0430 influxdb \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c)). \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 4,5 \u0413\u0431 \u0437\u0430\u043d\u044f\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430. \u0415\u0441\u043b\u0438 \u043c\u044b \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043c \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 100 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 1000 \u043c\u0435\u0442\u0440\u0438\u043a) &#8212; \u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u044b\u0435 5 \u043b\u0435\u0442 \u043c\u044b \u0432\u0440\u044f\u0434 \u043b\u0438 \u0432\u044b\u043b\u0435\u0437\u0435\u043c \u0437\u0430 10-12 \u0413\u0431 \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u043e\u043f\u044b\u0442\u0443 (\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 FS).<\/p>\n<p>Icinga2 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0439. \u0427\u0442\u043e \u043f\u043e \u0438\u0442\u043e\u0433\u0443 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>Icinga2 &#8212; \u044f\u0434\u0440\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 (\u0441\u0430\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433)<\/p>\n<\/li>\n<li>\n<p>Icingaweb2 + Apache2 (\u043a\u0430\u043a WEB-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441)<\/p>\n<\/li>\n<li>\n<p>IcingaDB &#8212; \u043d\u043e\u0432\u044b\u0439 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0439 WEB-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0434\u043b\u044f <a href=\"https:\/\/icinga.com\/docs\/icinga-db\/latest\/doc\/01-About\/\" rel=\"noopener noreferrer nofollow\">\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430<\/a><\/p>\n<\/li>\n<li>\n<p>Icingadb-redis &#8212; \u0441\u0432\u043e\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Redis \u0434\u043b\u044f IcingaDB<\/p>\n<\/li>\n<li>\n<p>Icinga-director &#8212; WEB-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Icinga (\u0445\u043e\u0441\u0442\u043e\u0432, \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0442.\u0434.)<\/p>\n<\/li>\n<li>\n<p>MariaDB SQL &#8212; \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f 4-\u0445 \u043c\u0435\u043b\u043a\u0438\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0440\u0430\u0441\u0442\u0443\u0442 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c &#8212; \u043f\u043e \u0441\u0443\u0442\u0438 \u044d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Icinga\/Web\/Director\/IcingaDB)<\/p>\n<\/li>\n<li>\n<p>InfluxDB &#8212; \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a (\u0431\u0430\u0437\u0430 \u0440\u0430\u0441\u0442\u0435\u0442, \u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e &#8212; \u0443 \u043c\u0435\u043d\u044f \u0437\u0430 \u0433\u043e\u0434\u044b \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a \u0431\u0430\u0437\u044b \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 2-3 \u0413\u0431 \u043f\u043e \u0438\u0442\u043e\u0433\u0443 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442)<\/p>\n<\/li>\n<li>\n<p>Grafana &#8212; \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u0438\u0437 InfluxDB \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u0445 \u0432 IcingaWeb2<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, Icinga2 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u0438 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u0441 \u043d\u0443\u043b\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u0438\u0435 \u0447\u0430\u0441\u044b\/\u0434\u043d\u0438). \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f &#8212; \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0437\u0430 5 \u043c\u0438\u043d\u0443\u0442 \u0438 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u0441\u043f\u043e\u0442\u0435\u0442\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c )))<\/p>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Debian 12 \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438\u0437 Ansible PlayBook-\u043e\u0432<\/h2>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432 \u0441 Playbook-\u0430\u043c\u0438 \u0438 \u0434\u043e\u043f \u0444\u0430\u0439\u043b\u0430\u043c\u0438: <a href=\"https:\/\/disk.yandex.ru\/d\/LGLtAKpxeRdmdA\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u044f \u043f\u0440\u043e\u0432\u043e\u0436\u0443 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/root (\u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0430, \u0443\u0432\u044b). \u041b\u0438\u0441\u0442\u0438\u043d\u0433 \u043a\u043e\u043c\u0430\u043d\u0434 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438:<\/p>\n<pre><code>cd \/root\/ tar -xpf Icinga2-Ansible-Debian12-09-11-2023.tar apt update apt install ansible ssh-keygen cd \/root\/.ssh\/ cat id_rsa.pub >> authorized_keys cp id_rsa \/root\/IcingaAnsible\/ cd \/root\/IcingaAnsible\/ ssh -i id_rsa root@127.0.0.1<\/code><\/pre>\n<p>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043b\u0438 \u0430\u0440\u0445\u0438\u0432, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Ansible, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u043a\u043b\u044e\u0447\u0438 SSH \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b, \u0437\u0430\u0448\u043b\u0438 \u043f\u043e SSH \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0444\u0430\u0439\u043b \/root\/.ssh\/known_hosts.<\/p>\n<h2>\u041f\u0430\u0440\u043e\u043b\u0438<\/h2>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u043d\u043e\u0433\u0438\u0445 Playbook-\u043e\u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u043f\u0430\u0440\u043e\u043b\u0438 (\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0442 MariaDB &#8212; \u043e\u0442 root, \u043e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u044e\u0437\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 IcingaIDO, IcingaWeb, Director, IcingaDB). \u041f\u043b\u044e\u0441 \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d Blowfish HASH \u043e\u0442 \u044e\u0437\u0435\u0440\u0430 icingaadmin. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432\u0435\u0437\u0434\u0435 \u044f \u0443\u043a\u0430\u0437\u0430\u043b \u043f\u0430\u0440\u043e\u043b\u044c: <strong>icingapassword<\/strong>.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 (<strong>grep -R -i &#171;_password:&#187; *<\/strong>) \u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u0445 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u0438:<\/p>\n<pre><code>0-icinga.yml:    mysql_root_password: icingapassword 0-icinga.yml:    icingaweb_password: icingapassword 0-icinga.yml:    icingaadmin_password: $2y$10$Vh8cot0heVpwq76N48WiAe3b60N\/rNfzFZby.KQF0szzCqRjlOu9K 2-icingaweb-init-configuration.yml:    icingaweb_password: icingapassword 2-icingaweb-init-configuration.yml:    director_password: icingapassword 2-icingaweb-init-configuration.yml:    icingadb_password: icingapassword 3-influx.yml:    influx_password: icingapassword 4-director.yml:    mysql_root_password: icingapassword 7-icingadb.yml:    icingadb_password: icingapassword<\/code><\/pre>\n<h2>\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a Playbook-\u043e\u0432<\/h2>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 ansible-playbook 0-icinga.yml (\u0434\u0430\u043b\u0435\u0435 1-icingaweb-modules.yml \u0438 \u0442.\u0434.).<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0438\u0445 8 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432:<\/p>\n<details class=\"spoiler\">\n<summary>Hidden text<\/summary>\n<div class=\"spoiler__content\">\n<p>root@icinga9:~\/IcingaAnsible# ansible-playbook 0-icinga.yml<\/p>\n<p>PLAY [debian] **********************************************************************************************************************************************************************<\/p>\n<p>TASK [Gathering Facts] *************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Install Icinga2 Software] ****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Change root password] ********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create ~\/.my.cnf] ************************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Insert into ~\/.my.cnf] *******************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [SQL Flush Privileges] ********************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Remove test database] ********************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Enable ReWrite Apache Module] ************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Set date.timezone in PHP configuration] **************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable Icinga2 feature &#8212; COMMAND] ********************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Get random password for IDO module from ido-mysql.conf] **********************************************************************************************************************<br \/> changed: [debian -> 127.0.0.1]<\/p>\n<p>TASK [set_fact] ********************************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [debug] ***********************************************************************************************************************************************************************<br \/> ok: [debian] => {<br \/> &#171;ido_password&#187;: &#171;d6qyFduTCvpi&#187;<br \/> }<\/p>\n<p>TASK [Drop IDO Database] ***********************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Create Database for IDO Icinga Module] ***************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Fill icinga2 database from Template] *****************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create SQL User icinga2 for Access to IDO Database] **************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Flush privileges in SQL] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Enable Icinga2 feature &#8212; IDO-MYSQL] ******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Restart Icinga2 Service] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Drop Icingaweb2 Database] ****************************************************************************************************************************************************<br \/> ok: [debian]<\/p>\n<p>TASK [Create Database for Icingaweb2 Module] ***************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create SQL Database for Icingaweb2] ******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Grant Access for Database for Icingaweb2] ************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Create Icingaweb2 User in Database] ******************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Flush privileges in SQL] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>TASK [Restart Apache2 Service] *****************************************************************************************************************************************************<br \/> changed: [debian]<\/p>\n<p>PLAY RECAP *************************************************************************************************************************************************************************<br \/> debian                     : ok=27   changed=21<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-359695","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/359695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=359695"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/359695\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}