{"id":443913,"date":"2025-01-02T15:05:12","date_gmt":"2025-01-02T15:05:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=443913"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2025-01-02T15:05:12","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=443913","title":{"rendered":"<span>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f MikroTik \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c MikroTik API, MKTXP, Prometheus \u0438 Grafana<\/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>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435: \u043f\u044f\u0442\u043d\u0438\u0446\u0430, \u0432\u0435\u0447\u0435\u0440, \u0432\u044b \u0443\u0436\u0435 \u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e \u0441 \u0431\u043e\u043a\u0430\u043b\u043e\u043c \u0447\u0435\u0433\u043e-\u0442\u043e \u043a\u0440\u0435\u043f\u043a\u043e\u0433\u043e \u0438 \u0432\u043a\u0443\u0441\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u0442\u0435\u0441\u044c \u043f\u0440\u043e\u043a\u0440\u0430\u0441\u0442\u0438\u043d\u0430\u0446\u0438\u0435\u0439. \u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u0432\u0435\u0449\u0430\u043b\u043e \u0431\u0435\u0434\u044b, \u043d\u043e \u0436\u0438\u0437\u043d\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u0438\u0433\u0440\u0443 &#171;\u0423\u0433\u0430\u0434\u0430\u0439 \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u044d\u0442\u0430\u0436\u0435 \u043f\u0440\u043e\u043f\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442&#187;. \u0418 \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u044c \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e\u0441\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0443\u043c\u043d\u044b\u0435 \u043b\u044e\u0434\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 Grafana \u0434\u043b\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043c\u0435\u0442\u0440\u0438\u043a, \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440\u044b \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u0440\u0438\u043a. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0451\u0440 \u043c\u0435\u0442\u0440\u0438\u043a MKTXP, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 2 \u043a\u043d\u043e\u043f\u043a\u0438.<\/p>\n<p><a href=\"https:\/\/github.com\/akpw\/mktxp?tab=readme-ov-file\">https:\/\/github.com\/akpw\/mktxp?tab=readme-ov-file<\/a><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9de\/ea9\/298\/9deea929854740230b3a72288ab00c77.png\" alt=\"MKTXP\" title=\"MKTXP\" width=\"766\" height=\"1000\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9de\/ea9\/298\/9deea929854740230b3a72288ab00c77.png\"\/><\/p>\n<div><figcaption>MKTXP<\/figcaption><\/div>\n<\/figure>\n<h3>\u041a\u0440\u0430\u0442\u043a\u0438\u0439 \u043e\u0431\u0437\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/h3>\n<h4>MikroTik API<\/h4>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 RouterOS \u0441 \u0446\u0435\u043b\u044c\u044e \u0441\u0431\u043e\u0440\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c. API \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 (CLI).<\/p>\n<h4>MKTXP<\/h4>\n<p>\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043d\u0435 \u0445\u043e\u0447\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0435\u0441\u0442\u044c <strong>MKTXP<\/strong> \u2014 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043c\u0435\u0442\u0440\u0438\u043a \u0438\u0437 RouterOS \u0432 Prometheus.<\/p>\n<h4>Prometheus<\/h4>\n<p><strong>Prometheus<\/strong> \u2014 \u043e\u0442 \u043c\u0435\u0442\u0440\u0438\u043a \u043a \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044e. \u041e\u043d \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u0445\u0440\u0430\u043d\u0438\u0442 \u0438\u0445, \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0440\u044f\u0434\u0430\u043c\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u043b\u0435\u0440\u0442\u044b, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0438\u0434\u0451\u0442 \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<h4>Grafana<\/h4>\n<p><strong>Grafana<\/strong> \u2014 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0433\u0440\u0430\u0444\u0438\u043a\u0438, \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u043f\u0430\u043d\u0435\u043b\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>\u0421\u0445\u0435\u043c\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<br \/> &#8212; MikroTik API \u27f6 MKTXP \u27f6 Prometheus \u27f6 Grafana<\/p>\n<h3>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f MikroTik<\/h3>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c API, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0433\u0440\u0443\u043f\u043f\u0443 \u0434\u043b\u044f MKTXP.<\/p>\n<pre><code>\/ip service enable api-ssl \/user group add name=monitoring policy=api,read \/user add name=mktxp group=monitoring password=mktxp_password<\/code><\/pre>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Ubuntu 22.04<\/h3>\n<p>\u041e\u0431\u043d\u043e\u0432\u044f\u043b\u0435\u043c\u0441\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Docker<\/p>\n<pre><code>apt update &amp;&amp; apt upgrade -y curl -fsSL https:\/\/get.docker.com -o get-docker.sh sh get-docker.sh<\/code><\/pre>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440 \u043c\u0435\u0442\u0440\u0438\u043a, Prometheus \u0438 Grafana \u0431\u0443\u0434\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u043e \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043d\u0435\u0441\u0442\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430\u043c. \u0410 \u0442\u0430\u043a \u0436\u0435 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0442 \u0430\u0432\u0442\u043e\u0440\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f <a href=\"https:\/\/github.com\/akpw\/mktxp-stack\">\u0442\u044b\u043a<\/a>.<br \/> \u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0440\u0430\u0437\u043d\u0435\u0441\u0442\u0438 Prometheus \u0438 Grafana \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 \u043e\u0442 MKTXP, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 MKTXP<\/h3>\n<p>\u0412 \u0434\u0435\u043f\u043b\u043e\u0435 MKTXP \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e<br \/> \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f MKTXP \u0438 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/p>\n<pre><code>mkdir -p mktxp\/conf cd mktxp nano conf\/mktxp.conf nano conf\/_mktxp.conf nano docker-compose.yml<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<br \/> mktxp.conf: &#8212; \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438<\/p>\n<pre><code>[MikroTik1]          hostname = 192.168.50.1 # IP \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c  [default]      enabled = True          # turns metrics collection for this RouterOS device on \/ off     hostname = localhost    # RouterOS IP address     port = 8729             # RouterOS IP Port          username = mktxp     # RouterOS user, needs to have 'read' and 'api' permissions     password = mktxp          use_ssl = True                  # enables connection via API-SSL servis     no_ssl_certificate = True       # enables API_SSL connect without router SSL certificate     ssl_certificate_verify = False  # turns SSL certificate verification on \/ off        plaintext_login = True          # for legacy RouterOS versions below 6.43 use False      installed_packages = True       # Installed packages     dhcp = True                     # DHCP general metrics     dhcp_lease = True               # DHCP lease metrics      connections = True              # IP connections metrics     connection_stats = True         # Open IP connections metrics       interface = True                # Interfaces traffic metrics          route = True                    # IPv4 Routes metrics     pool = True                     # IPv4 Pool metrics     firewall = True                 # IPv4 Firewall rules traffic metrics     neighbor = True                 # IPv4 Reachable Neighbors     dns = True                      # DNS stats      ipv6_route = False              # IPv6 Routes metrics         ipv6_pool = False               # IPv6 Pool metrics     ipv6_firewall = False           # IPv6 Firewall rules traffic metrics     ipv6_neighbor = False           # IPv6 Reachable Neighbors      poe = True                      # POE metrics     monitor = True                  # Interface monitor metrics     netwatch = True                 # Netwatch metrics     public_ip = True                # Public IP metrics     wireless = True                 # WLAN general metrics     wireless_clients = True         # WLAN clients metrics     capsman = True                  # CAPsMAN general metrics     capsman_clients = True          # CAPsMAN clients metrics      eoip = False                    # EoIP status metrics     gre = True                      # GRE status metrics     ipip = False                    # IPIP status metrics     lte = False                     # LTE signal and status metrics (requires additional 'test' permission policy on RouterOS v6)     ipsec = True                    # IPSec active peer metrics     switch_port = True              # Switch Port metrics      kid_control_assigned = True    # Allow Kid Control metrics for connected devices with assigned users     kid_control_dynamic = True     # Allow Kid Control metrics for all connected devices, including those without assigned user      user = True                     # Active Users metrics     queue = True                    # Queues metrics      bgp = True                      # BGP sessions metrics     routing_stats = True            # Routing process stats     certificate = True              # Certificates metrics          remote_dhcp_entry = None        # An MKTXP entry to provide for remote DHCP info \/ resolution     remote_capsman_entry = None     # An MKTXP entry to provide for remote capsman info       use_comments_over_names = True  # when available, forces using comments over the interfaces names     check_for_updates = True        # check for available ROS updates ```<\/code><\/pre>\n<p>_mktxp.conf: &#8212; \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043e\u043f\u044b\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440\u0430 MKTXP<\/p>\n<pre><code>[MKTXP]     listen = '0.0.0.0:49090'         # Space separated list of socket addresses to listen to, both IPV4 and IPV6     socket_timeout = 5          initial_delay_on_failure = 120     max_delay_on_failure = 900     delay_inc_div = 5      bandwidth = False                # Turns metrics bandwidth metrics collection on \/ off         bandwidth_test_interval = 600    # Interval for collecting bandwidth metrics     minimal_collect_interval = 5     # Minimal metric collection interval      verbose_mode = True             # Set it on for troubleshooting      fetch_routers_in_parallel = False   # Fetching metrics from multiple routers in parallel \/ sequentially      max_worker_threads = 5              # Max number of worker threads that can fetch routers (parallel fetch only)     max_scrape_duration = 30            # Max duration of individual routers' metrics collection (parallel fetch only)     total_max_scrape_duration = 90      # Max overall duration of all metrics collection (parallel fetch only)      compact_default_conf_values = False  # Compact mktxp.conf, so only specific values are kept on the individual routers' level<\/code><\/pre>\n<p>docker-compose.yml:<\/p>\n<pre><code>services:   mktxp:     container_name: mktxp     image: ghcr.io\/akpw\/mktxp:latest     user: root     volumes:       - '.\/conf\/:\/root\/mktxp\/'     ports:       - \"49090:49090\"     restart: unless-stopped  <\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440\u043e\u043c <code>docker compose up -d<\/code><\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f Prometheus + Grafana<\/h3>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0438 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>mkdir -p grafana\/grafana mkdir grafana\/prometheus cd grafana nano docker-compose.yml<\/code><\/pre>\n<p>docker-compose.yml:<\/p>\n<pre><code>services:   prometheus:     image: prom\/prometheus:latest     container_name: prometheus     volumes:       - .\/prometheus\/prometheus.yml:\/etc\/prometheus\/prometheus.yml       - prometheus_data:\/prometheus     ports:       - \"9090:9090\"     command:       - '--config.file=\/etc\/prometheus\/prometheus.yml'       - '--storage.tsdb.path=\/prometheus'       - '--storage.tsdb.retention.time=30d'     restart: always    grafana:     image: grafana\/grafana:latest     container_name: grafana     volumes:       - .\/grafana\/grafana:\/etc\/grafana\/provisioning       - grafana_data:\/var\/lib\/grafana     environment:       - GF_SECURITY_ADMIN_USER=admin       - GF_SECURITY_ADMIN_PASSWORD=admin     ports:       - \"3000:3000\"     depends_on:       - prometheus     restart: always  volumes:   prometheus_data:   grafana_data:<\/code><\/pre>\n<pre><code>nano prometheus\/prometheus.yml<\/code><\/pre>\n<p>prometheus.yml:<\/p>\n<pre><code>global:   scrape_interval: 15s  scrape_configs:   - job_name: 'prometheus'     static_configs:       - targets: ['localhost:9090']    - job_name: 'grafana'     static_configs:       - targets: ['grafana:3000']     - job_name: 'mktxp'     static_configs:       - targets: ['localhost:49090']<\/code><\/pre>\n<pre><code>docker compose up -d<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 Grafana \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>server-ip:3000<\/code>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/629\/1c3\/1aa\/6291c31aad191f7fd83683bb2a9f219d.png\" alt=\"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0432 Grafana\" title=\"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0432 Grafana\" width=\"1744\" height=\"981\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/629\/1c3\/1aa\/6291c31aad191f7fd83683bb2a9f219d.png\"\/><\/p>\n<div><figcaption>\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0432 Grafana<\/figcaption><\/div>\n<\/figure>\n<p>Da\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Data Source:<\/p>\n<ul>\n<li>\n<p>Connection -&gt; Data sources -&gt; Add data source.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c Prometheus \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c URL <code>http:\/\/prometheus:9090<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 Save &amp; test.<\/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\/9ed\/5c9\/040\/9ed5c9040c4fa33db268d90c7a1ae4d0.png\" alt=\"Data source\" title=\"Data source\" width=\"1759\" height=\"986\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9ed\/5c9\/040\/9ed5c9040c4fa33db268d90c7a1ae4d0.png\"\/><\/p>\n<div><figcaption>Data source<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c Dashboard \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 MikroTIk.<\/p>\n<p>\u0418\u043c\u043f\u043e\u0440\u0442 Dashboard:<\/p>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 Dashboard -&gt; Import.<\/p>\n<\/li>\n<li>\n<p>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 <a href=\"https:\/\/grafana.com\/grafana\/dashboards\/13679-mikrotik-mktxp-exporter\/\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0430\u0448\u0431\u043e\u0440\u0434 MKTXP<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Load, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 Prometheus \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0441 \u043d\u0430\u0448\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/946\/4fc\/28e\/9464fc28e6a839f02cd73dd4327c05e5.jpg\" alt=\"MKTXP Dashboard\" title=\"MKTXP Dashboard\" width=\"1280\" height=\"556\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/946\/4fc\/28e\/9464fc28e6a839f02cd73dd4327c05e5.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>MKTXP Dashboard<\/figcaption><\/div>\n<\/figure>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 MKTXP \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 Prometheus \u0438 Grafana \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0433\u0438\u0431\u043a\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 MikroTik. \u041f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438.  \u042d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u0451\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 RouterOS &#171;\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438&#187;. \u0412\u0435\u0434\u044c \u0432 \u043d\u0430\u0448\u0435\u0439 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435, \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0430\u0432\u0430\u0440\u0438\u0439, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u0444\u0435\u0431\u0440\u0435\u0439\u043a\u0438 \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043c\u0435\u043c\u043e\u0432, \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \ud83d\ude42<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/companies\/aeza\/articles\/870978\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u041a\u0430\u043a\u043e\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">81.42% <\/span><span class=\"tm-article-poll__answer-label\">MikroTik<\/span><span class=\"tm-article-poll__answer-votes\">92<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 81.42%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">20.35% <\/span><span class=\"tm-article-poll__answer-label\">Cisco<\/span><span class=\"tm-article-poll__answer-votes\">23<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 20.35%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">12.39% <\/span><span class=\"tm-article-poll__answer-label\">Ubiquiti<\/span><span class=\"tm-article-poll__answer-votes\">14<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 12.39%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">13.27% <\/span><span class=\"tm-article-poll__answer-label\">TP-Link<\/span><span class=\"tm-article-poll__answer-votes\">15<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 13.27%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">7.96% <\/span><span class=\"tm-article-poll__answer-label\">D-Link<\/span><span class=\"tm-article-poll__answer-votes\">9<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 7.96%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">15.93% <\/span><span class=\"tm-article-poll__answer-label\">\u0414\u0440\u0443\u0433\u043e\u0435 (\u0443\u043a\u0430\u0436\u0438\u0442\u0435)<\/span><span class=\"tm-article-poll__answer-votes\">18<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 15.93%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 113 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 7 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <\/div>\n<p><!--]--><\/div>\n<p><!--]--><\/div>\n<p> \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\/870978\/\"> https:\/\/habr.com\/ru\/articles\/870978\/<\/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>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435: \u043f\u044f\u0442\u043d\u0438\u0446\u0430, \u0432\u0435\u0447\u0435\u0440, \u0432\u044b \u0443\u0436\u0435 \u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e \u0441 \u0431\u043e\u043a\u0430\u043b\u043e\u043c \u0447\u0435\u0433\u043e-\u0442\u043e \u043a\u0440\u0435\u043f\u043a\u043e\u0433\u043e \u0438 \u0432\u043a\u0443\u0441\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u0442\u0435\u0441\u044c \u043f\u0440\u043e\u043a\u0440\u0430\u0441\u0442\u0438\u043d\u0430\u0446\u0438\u0435\u0439. \u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u0432\u0435\u0449\u0430\u043b\u043e \u0431\u0435\u0434\u044b, \u043d\u043e \u0436\u0438\u0437\u043d\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u0438\u0433\u0440\u0443 &#171;\u0423\u0433\u0430\u0434\u0430\u0439 \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u044d\u0442\u0430\u0436\u0435 \u043f\u0440\u043e\u043f\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442&#187;. \u0418 \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u044c \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e\u0441\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0443\u043c\u043d\u044b\u0435 \u043b\u044e\u0434\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b\u0438 Grafana \u0434\u043b\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043c\u0435\u0442\u0440\u0438\u043a, \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440\u044b \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u0440\u0438\u043a. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0451\u0440 \u043c\u0435\u0442\u0440\u0438\u043a MKTXP, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 2 \u043a\u043d\u043e\u043f\u043a\u0438.<\/p>\n<p><a href=\"https:\/\/github.com\/akpw\/mktxp?tab=readme-ov-file\">https:\/\/github.com\/akpw\/mktxp?tab=readme-ov-file<\/a><\/p>\n<figure class=\"full-width\">\n<div><figcaption>MKTXP<\/figcaption><\/div>\n<\/figure>\n<h3>\u041a\u0440\u0430\u0442\u043a\u0438\u0439 \u043e\u0431\u0437\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/h3>\n<h4>MikroTik API<\/h4>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 RouterOS \u0441 \u0446\u0435\u043b\u044c\u044e \u0441\u0431\u043e\u0440\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c. API \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 (CLI).<\/p>\n<h4>MKTXP<\/h4>\n<p>\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043d\u0435 \u0445\u043e\u0447\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0435\u0441\u0442\u044c <strong>MKTXP<\/strong> \u2014 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043c\u0435\u0442\u0440\u0438\u043a \u0438\u0437 RouterOS \u0432 Prometheus.<\/p>\n<h4>Prometheus<\/h4>\n<p><strong>Prometheus<\/strong> \u2014 \u043e\u0442 \u043c\u0435\u0442\u0440\u0438\u043a \u043a \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044e. \u041e\u043d \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u0445\u0440\u0430\u043d\u0438\u0442 \u0438\u0445, \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0440\u044f\u0434\u0430\u043c\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u043b\u0435\u0440\u0442\u044b, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0438\u0434\u0451\u0442 \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<h4>Grafana<\/h4>\n<p><strong>Grafana<\/strong> \u2014 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0433\u0440\u0430\u0444\u0438\u043a\u0438, \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u043f\u0430\u043d\u0435\u043b\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043e\u0442\u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>\u0421\u0445\u0435\u043c\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<br \/> &#8212; MikroTik API \u27f6 MKTXP \u27f6 Prometheus \u27f6 Grafana<\/p>\n<h3>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f MikroTik<\/h3>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c API, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0433\u0440\u0443\u043f\u043f\u0443 \u0434\u043b\u044f MKTXP.<\/p>\n<pre><code>\/ip service enable api-ssl \/user group add name=monitoring policy=api,read \/user add name=mktxp group=monitoring password=mktxp_password<\/code><\/pre>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Ubuntu 22.04<\/h3>\n<p>\u041e\u0431\u043d\u043e\u0432\u044f\u043b\u0435\u043c\u0441\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Docker<\/p>\n<pre><code>apt update &amp;&amp; apt upgrade -y curl -fsSL https:\/\/get.docker.com -o get-docker.sh sh get-docker.sh<\/code><\/pre>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440 \u043c\u0435\u0442\u0440\u0438\u043a, Prometheus \u0438 Grafana \u0431\u0443\u0434\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u043e \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043d\u0435\u0441\u0442\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430\u043c. \u0410 \u0442\u0430\u043a \u0436\u0435 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0442 \u0430\u0432\u0442\u043e\u0440\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f <a href=\"https:\/\/github.com\/akpw\/mktxp-stack\">\u0442\u044b\u043a<\/a>.<br \/> \u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0440\u0430\u0437\u043d\u0435\u0441\u0442\u0438 Prometheus \u0438 Grafana \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 \u043e\u0442 MKTXP, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 MKTXP<\/h3>\n<p>\u0412 \u0434\u0435\u043f\u043b\u043e\u0435 MKTXP \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e<br \/> \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f MKTXP \u0438 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/p>\n<pre><code>mkdir -p mktxp\/conf cd mktxp nano conf\/mktxp.conf nano conf\/_mktxp.conf nano docker-compose.yml<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<br \/> mktxp.conf: &#8212; \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438<\/p>\n<pre><code>[MikroTik1]          hostname = 192.168.50.1 # IP \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c  [default]      enabled = True          # turns metrics collection for this RouterOS device on \/ off     hostname = localhost    # RouterOS IP address     port = 8729             # RouterOS IP Port          username = mktxp     # RouterOS user, needs to have 'read' and 'api' permissions     password = mktxp          use_ssl = True                  # enables connection via API-SSL servis     no_ssl_certificate = True       # enables API_SSL connect without router SSL certificate     ssl_certificate_verify = False  # turns SSL certificate verification on \/ off        plaintext_login = True          # for legacy RouterOS versions below 6.43 use False      installed_packages = True       # Installed packages     dhcp = True                     # DHCP general metrics     dhcp_lease = True               # DHCP lease metrics      connections = True              # IP connections metrics     connection_stats = True         # Open IP connections metrics       interface = True                # Interfaces traffic metrics          route = True                    # IPv4 Routes metrics     pool = True                     # IPv4 Pool metrics     firewall = True                 # IPv4 Firewall rules traffic metrics     neighbor = True                 # IPv4 Reachable Neighbors     dns = True                      # DNS stats      ipv6_route = False              # IPv6 Routes metrics         ipv6_pool = False               # IPv6 Pool metrics     ipv6_firewall = False           # IPv6 Firewall rules traffic metrics     ipv6_neighbor = False           # IPv6 Reachable Neighbors      poe = True                      # POE metrics     monitor = True                  # Interface monitor metrics     netwatch = True                 # Netwatch metrics     public_ip = True                # Public IP metrics     wireless = True                 # WLAN general metrics     wireless_clients = True         # WLAN clients metrics     capsman = True                  # CAPsMAN general metrics     capsman_clients = True          # CAPsMAN clients metrics      eoip = False                    # EoIP status metrics     gre = True                      # GRE status metrics     ipip = False                    # IPIP status metrics     lte = False                     # LTE signal and status metrics (requires additional 'test' permission policy on RouterOS v6)     ipsec = True                    # IPSec active peer metrics     switch_port = True              # Switch Port metrics      kid_control_assigned = True    # Allow Kid Control metrics for connected devices with assigned users     kid_control_dynamic = True     # Allow Kid Control metrics for all connected devices, including those without assigned user      user = True                     # Active Users metrics     queue = True                    # Queues metrics      bgp = True                      # BGP sessions metrics     routing_stats = True            # Routing process stats     certificate = True              # Certificates metrics          remote_dhcp_entry = None        # An MKTXP entry to provide for remote DHCP info \/ resolution     remote_capsman_entry = None     # An MKTXP entry to provide for remote capsman info       use_comments_over_names = True  # when available, forces using comments over the interfaces names     check_for_updates = True        # check for available ROS updates ```<\/code><\/pre>\n<p>_mktxp.conf: &#8212; \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043e\u043f\u044b\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440\u0430 MKTXP<\/p>\n<pre><code>[MKTXP]     listen = '0.0.0.0:49090'         # Space separated list of socket addresses to listen to, both IPV4 and IPV6     socket_timeout = 5          initial_delay_on_failure = 120     max_delay_on_failure = 900     delay_inc_div = 5      bandwidth = False                # Turns metrics bandwidth metrics collection on \/ off         bandwidth_test_interval = 600    # Interval for collecting bandwidth metrics     minimal_collect_interval = 5     # Minimal metric collection interval      verbose_mode = True             # Set it on for troubleshooting      fetch_routers_in_parallel = False   # Fetching metrics from multiple routers in parallel \/ sequentially      max_worker_threads = 5              # Max number of worker threads that can fetch routers (parallel fetch only)     max_scrape_duration = 30            # Max duration of individual routers' metrics collection (parallel fetch only)     total_max_scrape_duration = 90      # Max overall duration of all metrics collection (parallel fetch only)      compact_default_conf_values = False  # Compact mktxp.conf, so only specific values are kept on the individual routers' level<\/code><\/pre>\n<p>docker-compose.yml:<\/p>\n<pre><code>services:   mktxp:     container_name: mktxp     image: ghcr.io\/akpw\/mktxp:latest     user: root     volumes:       - '.\/conf\/:\/root\/mktxp\/'     ports:       - \"49090:49090\"     restart: unless-stopped  <\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0435\u0440\u043e\u043c <code>docker compose up -d<\/code><\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f Prometheus + Grafana<\/h3>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0438 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>mkdir -p grafana\/grafana mkdir grafana\/prometheus cd grafana nano docker-compose.yml<\/code><\/pre>\n<p>docker-compose.yml:<\/p>\n<pre><code>services:   prometheus:     image: prom\/prometheus:latest     container_name: prometheus     volumes:       - .\/prometheus\/prometheus.yml:\/etc\/prometheus\/prometheus.yml       - prometheus_data:\/prometheus     ports:       - \"9090:9090\"     command:       - '--config.file=\/etc\/prometheus\/prometheus.yml'       - '--storage.tsdb.path=\/prometheus'       - '--storage.tsdb.retention.time=30d'     restart: always    grafana:     image: grafana\/grafana:latest     container_name: grafana     volumes:       - .\/grafana\/grafana:\/etc\/grafana\/provisioning       - grafana_data:\/var\/lib\/grafana     environment:       - GF_SECURITY_ADMIN_USER=admin       - GF_SECURITY_ADMIN_PASSWORD=admin     ports:       - \"3000:3000\"     depends_on:       - prometheus     restart: always  volumes:   prometheus_data:   grafana_data:<\/code><\/pre>\n<pre><code>nano prometheus\/prometheus.yml<\/code><\/pre>\n<p>prometheus.yml:<\/p>\n<pre><code>global:   scrape_interval: 15s  scrape_configs:   - job_name: 'prometheus'     static_configs:       - targets: ['localhost:9090']    - job_name: 'grafana'     static_configs:       - targets: ['grafana:3000']     - job_name: 'mktxp'     static_configs:       - targets: ['localhost:49090']<\/code><\/pre>\n<pre><code>docker compose up -d<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 Grafana \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>server-ip:3000<\/code>.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0432 Grafana<\/figcaption><\/div>\n<\/figure>\n<p>Da\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Data Source:<\/p>\n<ul>\n<li>\n<p>Connection -&gt; Data sources -&gt; Add data source.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c Prometheus \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c URL <code>http:\/\/prometheus:9090<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 Save &amp; test.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\">\n<div><figcaption>Data source<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c Dashboard \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 MikroTIk.<\/p>\n<p>\u0418\u043c\u043f\u043e\u0440\u0442 Dashboard:<\/p>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 Dashboard -&gt; Import.<\/p>\n<\/li>\n<li>\n<p>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 <a href=\"https:\/\/grafana.com\/grafana\/dashboards\/13679-mikrotik-mktxp-exporter\/\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0430\u0448\u0431\u043e\u0440\u0434 MKTXP<\/a>.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Load, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 Prometheus \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0441 \u043d\u0430\u0448\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\">\n<div><figcaption>MKTXP Dashboard<\/figcaption><\/div>\n<\/figure>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 MKTXP \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 Prometheus \u0438 Grafana \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0433\u0438\u0431\u043a\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 MikroTik. \u041f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438.  \u042d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u0451\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 RouterOS &#171;\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438&#187;. \u0412\u0435\u0434\u044c \u0432 \u043d\u0430\u0448\u0435\u0439 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435, \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0430\u0432\u0430\u0440\u0438\u0439, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u0444\u0435\u0431\u0440\u0435\u0439\u043a\u0438 \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043c\u0435\u043c\u043e\u0432, \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \ud83d\ude42<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/companies\/aeza\/articles\/870978\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u041a\u0430\u043a\u043e\u0435<\/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-443913","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443913","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=443913"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443913\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=443913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=443913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=443913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}