{"id":319565,"date":"2021-03-15T03:00:23","date_gmt":"2021-03-15T03:00:23","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=319565"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=319565","title":{"rendered":"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 linux \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 Home Assistant \u0447\u0435\u0440\u0435\u0437 mqtt"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043c\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u044f \u0437\u0430\u0434\u0430\u043b\u0441\u044f \u0446\u0435\u043b\u044c\u044e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u0443\u043c\u043d\u043e\u043c \u0434\u043e\u043c\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Home Assistant. \u0411\u044b\u0441\u0442\u0440\u043e\u0435 \u0438 \u043f\u043e\u0442\u043e\u043c \u0432\u0434\u0443\u043c\u0447\u0438\u0432\u043e\u0435 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u043d\u0435 \u0434\u0430\u043b\u043e \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u043c\u0435\u043d\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434.<\/p>\n<p>\u0412\u0432\u043e\u0434\u043d\u044b\u0435: \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0441\u0432\u043e\u043f\u0430, \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0430\u043f\u0442\u0430\u0439\u043c\u0430, \u043e\u0431\u0449\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 smart \u0434\u0438\u0441\u043a\u043e\u0432 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 raid (\u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 ubuntu server 20 \u043f\u043e\u0434\u043d\u044f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043e\u0444\u0442\u043e\u0432\u044b\u0439 raid1). \u0414\u0438\u0441\u043a\u0438 WD Green, \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430 GA-525 \u0441\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c atom525.<br \/>\u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430 \u0443\u0436\u0435 \u043f\u043e\u0434\u043d\u044f\u0442 \u0431\u0440\u043e\u043a\u0435\u0440 mosquitto, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0431\u0440\u0430\u043d mqtt.<br \/>\u0412 \u043f\u0435\u0440\u0432\u044b\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u0445 \u0441\u0435\u0433\u043e \u0442\u0440\u0443\u0434\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 &#8212; \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 HA.<br \/>\u0412\u0441\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root<\/p>\n<p><strong>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/strong><br \/><a href=\"#sensors\" rel=\"noopener noreferrer nofollow\">\u0421\u0431\u043e\u0440 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432<\/a><br \/><a href=\"#system\" rel=\"noopener noreferrer nofollow\">\u0421\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/a><br \/><a href=\"#drives\" rel=\"noopener noreferrer nofollow\">\u0421\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0436\u0435\u0441\u0442\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u043e\u0432<\/a><br \/><a href=\"#raid\" rel=\"noopener noreferrer nofollow\">\u0421\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 RAID<\/a><br \/><a href=\"#transmit\" rel=\"noopener noreferrer nofollow\">\u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/a><br \/><a href=\"#ha\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Home Assistant<\/a><\/p>\n<h2>\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432<\/h2>\n<p><a class=\"anchor\" name=\"sensors\" id=\"sensors\"><\/a><\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 <em>sensors<\/em><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0435\u0435:<br \/><code>apt-get install lm-sensors<\/code><\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0434\u043e \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0438. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <br \/><code>sensors-detect<\/code><br \/>\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u043c <strong>y<\/strong> \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<br \/><code>sensors<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pn\/5h\/vw\/pn5hvwabyqi0k_tbp7kybxcna_k.png\" width=\"606\" height=\"411\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0434\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043b\u0438\u0447\u043d\u043e \u0443 \u043c\u0435\u043d\u044f sensors \u0441\u0442\u0430\u043b \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041c\u043e\u0436\u0435\u0442 \u043a\u0430\u043a\u043e\u0439 \u0442\u043e \u0431\u0430\u0433, \u043d\u0435 \u0437\u043d\u0430\u044e.<\/p>\n<p>\u041d\u0430\u0434\u043e \u0431\u044b \u043a\u0430\u043a \u0442\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u0443 sensors \u0435\u0441\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 json, \u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0440\u044b\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u0434\u0430\u043f\u0442\u043e\u0440\u0430.<br \/><code>sensors -A -u -j<br \/><\/code>\u0412\u044b\u0434\u0430\u0441\u0442 \u0434\u043b\u0438\u043d\u043d\u044b\u0439 json. <a href=\"https:\/\/pastebin.com\/PDeFBqcg\" rel=\"noopener noreferrer nofollow\">\u0412\u043e\u0442 \u043c\u043e\u0439<\/a>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440.<code> <\/code><\/p>\n<p>\u041d\u0443 \u0432\u043e\u0442, \u0441 \u044d\u0442\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u0435\u0435. \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u0414\u043b\u044f \u0440\u0430\u0437\u0431\u043e\u0440\u0430 json \u043f\u0440\u044f\u043c\u043e \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0435\u0441\u0442\u044c \u0448\u0438\u043a\u0430\u0440\u043d\u0435\u0439\u0448\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 &#8212; <em>jp<\/em>. \u0415\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 &#8212; \u0434\u043b\u044f ubuntu \u043e\u043d\u0430 \u0435\u0441\u0442\u044c \u0432 \u043f\u0430\u043a\u0435\u0442\u0430\u0445:<br \/><code>apt-get install jq<\/code><\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c xpath \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430. \u041c\u043e\u0436\u043d\u043e \u0433\u043b\u0430\u0437\u0430\u043c\u0438, \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u044d\u0442\u043e\u0433\u043e  \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e <a href=\"https:\/\/jsonpathfinder.com\/\" rel=\"noopener noreferrer nofollow\">\u043e\u043d\u043b\u0430\u0439\u043d-\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430<\/a>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u044f\u043c\u043e \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441 \u0434\u0430\u043d\u043d\u044b\u0435. \u042f \u0445\u043e\u0447\u0443 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u043e\u0434\u043d\u043e\u0433\u043e \u044f\u0434\u0440\u0430 \u0445\u0432\u0430\u0442\u0438\u0442, \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a\u0443\u043b\u0435\u0440\u0430, \u0438 \u0435\u0449\u0435 \u043a\u0430\u043a\u043e\u0439 \u0442\u043e \u0442\u0440\u0435\u0442\u0438\u0439 \u0441\u0435\u043d\u0441\u043e\u0440 temp3, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0434\u043b\u044f \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0440\u043f\u0443\u0441\u0430:<br \/><code>sensors -A -u -j | jq '.[\"coretemp-isa-0000\"][\"Core 0\"].temp2_input'<br \/>sensors -A -u -j | jq '.[\"it8720-isa-0290\"].fan1.fan1_input'<br \/>sensors -A -u -j | jq '.[\"it8720-isa-0290\"].temp3.temp3_input'<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tc\/kj\/qm\/tckjqme6rgwpu_xdch_2hxku6tc.png\" width=\"661\" height=\"106\"><figcaption><\/figcaption><\/figure>\n<h2>\u041d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<p><a class=\"anchor\" name=\"system\" id=\"system\"><\/a><\/p>\n<p>\u0411\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0437\u0430\u043d\u044f\u0442\u043e\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0441\u0432\u0430\u043f\u0430, \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0435, \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0430\u043f\u0442\u0430\u0439\u043c\u0430.<\/p>\n<p><strong>\u0423\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438<\/strong>. \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e \u043c\u043e\u0435\u043c\u0443 &#8212; \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <em>free<\/em>. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043b\u043e\u043c\u0430\u0442\u044c \u0433\u043b\u0430\u0437\u0430, \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 -m, \u0432\u044b\u0432\u043e\u0434\u044f\u0449\u0438\u0439 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430\u0445.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bo\/i4\/5-\/boi45-lsfejx5meonbtaudjwnti.png\" width=\"575\" height=\"73\"><figcaption><\/figcaption><\/figure>\n<p>\u0411\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e, \u0438 \u0438\u0437 \u043d\u0438\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u043e\u0431\u044b\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u043d\u0442, \u043d\u043e \u0432\u0434\u0440\u0443\u0433 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u0442\u043e\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. <br \/><code>free -m | grep \"Mem\" | awk '{print $2}'<\/code><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qm\/2k\/_i\/qm2k_ivqsueazvx6xz9fku7zwao.png\" width=\"417\" height=\"31\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 grep \u043e\u0442\u0434\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0430 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 awk &#8212; \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0446\u0438\u0444\u0440\u0443. \u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0430 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435. \u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0441\u0447\u0435\u0442\u0430.<\/p>\n<p><strong>\u0421\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445<\/strong> \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <em>df<\/em>. \u041d\u0443\u0436\u043d\u044b\u0435 \u043c\u043d\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0436\u0435 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445, \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u043e\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u0442 \u0436\u0435 \u043f\u043e\u0434\u0445\u043e\u0434, \u0447\u0442\u043e \u0438 \u0441 \u043f\u0430\u043c\u044f\u0442\u044c\u044e. \u0415\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0438\u0435 &#8212; \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0446\u0438\u0444\u0440\u0430, \u0430 \u0442\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430. \u0414\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<br \/><code>df<br \/>df | grep \"\/dev\/md127p1\" | awk '{print $5}' | sed 's\/%$\/\/'<br \/>df | grep \"\/dev\/md126p1\" | awk '{print $5}' | sed 's\/%$\/\/'<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kb\/2a\/ue\/kb2auee1siuivlp8ugacitdghss.png\" width=\"559\" height=\"322\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0421\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 \/proc\/loadavg. \u041d\u0430\u0434\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u0446\u0438\u0444\u0440\u044b \u0442\u0430\u043c &#8212; \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0432 \u043f\u043e\u043f\u0443\u0433\u0430\u044f\u0445. \u041f\u0435\u0440\u0432\u044b\u0435 \u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0438\u043b\u0438 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f, \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0436\u0434\u0443\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430 \u0437\u0430 1, 5 \u0438 15 \u043c\u0438\u043d\u0443\u0442. \u0422\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0438 \u043d\u0435 \u0434\u043e\u043b\u044f \u043e\u0442 \u0446\u0435\u043b\u043e\u0433\u043e. \u041f\u0440\u043e\u0441\u0442\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0447\u0438\u0441\u043b\u0430, \u0442\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435 (\u0431\u043e\u043b\u044c\u0448\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b) \u0447\u0438\u0441\u043b\u043e \u0442\u0430\u043c \u044d\u0442\u043e \u043f\u043b\u043e\u0445\u043e, \u043f&#8217;\u043d\u044f\u0442\u043d\u0435\u043d\u044c\u043a\u043e?<br \/>\u042f \u0431\u0443\u0434\u0443 \u0431\u0440\u0430\u0442\u044c \u0437\u0430 15 \u043c\u0438\u043d\u0443\u0442:<br \/><code>cat \/proc\/loadavg | awk '{print $3}'<\/code><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/mb\/jh\/bv\/mbjhbvcmma-5uxtfzmsjyihqmm4.png\" width=\"401\" height=\"66\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0410\u043f\u0442\u0430\u0439\u043c <\/strong>\u043d\u0430\u043c \u0434\u0430\u0441\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <em>uptime<\/em>:<br \/><code>uptime | awk '{print $3}' | sed 's\/,$\/\/'<\/code><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/z4\/8w\/zt\/z48wztfh1ayvurbme6rsdq2u4hc.png\" width=\"439\" height=\"69\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0443 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 <strong>\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430<\/strong> \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b mpstat. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0443\u043c\u043c\u0438\u0440\u0443\u0435\u0442 \u044f\u0434\u0440\u0430, \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0432\u044b\u0434\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438 \u0442\u0443\u0442 \u0436\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u0422\u0443\u0442 \u0442\u043e\u0436\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043d\u043e \u0437\u0430\u0442\u043e \u0441\u0443\u043c\u043c\u0438\u0440\u0443\u044e\u0442 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u044f. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0446\u0438\u0444\u0440\u0443 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u043d\u0430\u0434\u043e \u0438\u043b\u0438 \u0438\u0437 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0432\u044b\u0447\u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0438\u043b\u0438 \u0441\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 mpstat \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430, \u0442\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <em>apt install sysstat. \u0418\u0442\u0430\u043a,<br \/><\/em><code>mpstat | grep all | awk '{print $13}'<\/code><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xl\/ey\/nz\/xleynzuwoay4kcnnhi79fgkadw0.png\" width=\"687\" height=\"119\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u043d\u044f\u0442\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441.<br \/>\u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u0443 \u043f\u043e\u0447\u0442\u0438 \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043d\u0435\u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043b\u043e\u043a\u0430\u043b\u0438 \u0442\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0437\u0430\u043f\u044f\u0442\u0430\u044f \u0430 \u0442\u043e\u0447\u043a\u0430. \u0414\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 bash \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u043b\u043e\u0445\u043e \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0441 \u0442\u043e\u0447\u043a\u043e\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 bc<br \/><code>cpuidle=$(mpstat | grep all | awk '{print $13}') <br \/>cpuload=$(echo \"100-$cpuidle\" | bc -l)<br \/>echo \"\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430: $cpuload\"<\/code><\/p>\n<h2>\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0436\u0435\u0441\u0442\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u043e\u0432<\/h2>\n<p><a class=\"anchor\" name=\"drives\" id=\"drives\"><\/a><\/p>\n<p><strong>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0434\u0438\u0441\u043a\u043e\u0432<\/strong> \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 hddtemp. \u0415\u0441\u043b\u0438 \u0435\u0435 \u043d\u0435\u0442, \u0441\u0442\u0430\u0432\u0438\u043c:<br \/><code>apt-get install hddtemp<\/code><\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u0440\u043e\u0441\u0442\u043e: \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0435\u0439 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0438 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c -n \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0448\u043d\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ba\/1o\/ol\/ba1oolngqe3yhryxalvp4vfp63w.png\" width=\"331\" height=\"37\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e SMART<\/strong> \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f smartmontools<br \/><code>apt-get install smartmontools<\/code><\/p>\n<p>\u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430 \u043a\u0430\u043a\u043e\u0439 \u0434\u0438\u0441\u043a \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0438 \u043a\u043b\u044e\u0447 -a, \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0430\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0430 \u043e \u0434\u0438\u0441\u043a\u0435.<br \/><code>smartctl -a \/dev\/sda<\/code><br \/>\u0423\u0442\u0438\u043b\u0438\u0442\u0430 \u0432\u044b\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442 \u0446\u0435\u043b\u0443\u044e \u0433\u043e\u0440\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043a\u0440\u0430\u043d\u043e\u0432. \u041d\u0435 \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0443\u0442 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e. \u0418\u0437 \u0432\u0441\u0435\u0439 \u044d\u0442\u043e\u0439 \u043a\u0443\u0447\u0438 \u043d\u0430\u0434\u043e \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435  \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438. \u042f \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u044d\u0442\u0438:<\/p>\n<p><strong>Raw_Read_Error_Rate<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0447\u0442\u0435\u043d\u0438\u044f. \u041d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043e \u0441\u043a\u043e\u0440\u043e\u043c \u0432\u044b\u0445\u043e\u0434\u0435 \u0434\u0438\u0441\u043a\u0430 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f. \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430\u0445 \u043f\u0438\u0448\u0443\u0442, \u0447\u0442\u043e \u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c. \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u043e \u043d\u0443\u043b\u044e. \u0410 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043c, \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u043b\u043d\u043e\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430;<br \/> <strong>Reallocated_Sector_Ct<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0434\u0438\u0441\u043a\u0430;<br \/> <strong>Seek_Error_Rate<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u043f\u043b\u043e\u0445\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0434\u0438\u0441\u043a\u0430;<br \/> <strong>Spin_Retry_Count<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0439 \u0440\u0430\u0441\u043a\u0440\u0443\u0442\u043a\u0438. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u043f\u043b\u043e\u0445\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0434\u0438\u0441\u043a\u0430;<br \/> <strong>Reallocated_Event_Count<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432;<br \/> <strong>Offline_Uncorrectable<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043d\u044b\u0445 \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0451\u043d\u043d\u043e\u0439 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0445 \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 &#8212; \u0432\u044b\u0432\u043e\u0434 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 -j, \u0432\u043e\u0442 \u0442\u0430\u043a:<br \/><code>smartctl -a -j \/dev\/sda<\/code><\/p>\n<p>\u0412 \u043e\u0442\u0432\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0434\u043b\u0438\u043d\u043d\u044b\u0439 json, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0444\u0430\u0439\u043b. <a href=\"https:\/\/pastebin.com\/2i4g1p9V\" rel=\"noopener noreferrer nofollow\">\u0412\u043e\u0442 \u043c\u043e\u0439<\/a>. \u0412\u0430\u0448, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u044b\u043c. \u0412 \u044d\u0442\u043e\u043c \u0432\u043d\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043d\u0430\u0434\u043e \u0433\u043b\u0430\u0437\u0430\u043c\u0438 \u0438\u043b\u0438 \u0438\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c json xpath \u043a \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432 xpath, \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0446\u0438\u0444\u0440\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u043e\u0439 \u0436\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b jq, \u0432\u043e\u0442 \u0442\u0430\u043a (\u0432 \u043a\u043e\u043d\u0446\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438\u043c\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430):<\/p>\n<p><code>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[0].raw.value' #Raw_Read_Error_Rate<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[3].raw.value' #Reallocated_Sector_Ct<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[4].raw.value' #Seek_Error_Rate<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[6].raw.value' #Spin_Retry_Count<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[12].raw.value' #Reallocated_Event_Count<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[14].raw.value' #Offline_Uncorrectable<\/code><\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0442\u0438\u043f\u0430 &#171;\u0442\u044b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043a\u0430\u0436\u0438 &#8212; \u0437\u0434\u043e\u0440\u043e\u0432 \u0442\u044b \u0438\u043b\u0438 \u043d\u0435\u0442&#187; &#8212; \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c -H, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435 \u0434\u0438\u0441\u043a\u0430. \u0423 \u0440\u0435\u0436\u0438\u043c\u0430 \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 -j, \u0432\u044b\u0432\u043e\u0434\u044f\u0449\u0438\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 json.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zl\/_5\/1v\/zl_51vwrfaccqo1yrlixwqacfs4.png\" width=\"543\" height=\"108\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0432\u044b\u0434\u0435\u043b\u044f\u043c \u0435\u0433\u043e \u0438\u0437 json:<br \/><code>smartctl -a \/dev\/sda -j | jq '.smart_status.passed' #smart_status <\/code><\/p>\n<details class=\"spoiler\">\n<summary>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043e\u0432\u0440\u0435\u043c\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0438\u0441\u043a, \u0441\u0430\u043c\u043e \u0441\u0435\u0431\u044f \u043e\u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442 (\u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435)<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0438\u0441\u043a\u043e\u0432 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u044e\u0442 \u0441\u0435\u0431\u044f \u0441\u0430\u043c\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0441\u0442\u0440\u0430\u0445\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u0430\u0434\u043e \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 cron \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0430. \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0433\u043e \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e \u0438 \u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u043e.<br \/><code>smartctl -t short \/dev\/sda<\/code> <br \/>\u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 2 \u043c\u0438\u043d\u0443\u0442<br \/><code>smartctl -t long \/dev\/sda<\/code><br \/> \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u0441\u0442, \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 1 \u0447\u0430\u0441\u0430.<br \/>\u0415\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0435\u0441\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u0434\u0435\u043c\u043e\u043d\u0430, smartd, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0438 \u043c\u043e\u0436\u0435\u0442 \u0434\u0430\u0436\u0435 \u0441\u043b\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b. \u041e\u0442\u0447\u0435\u0442\u043e\u0432 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u0430 \u0432\u043e\u0442 \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 smartd \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0433\u0443\u0433\u043b\u0438\u0442\u044c.<\/p>\n<\/div>\n<\/details>\n<h2>\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f RAID<\/h2>\n<p><a class=\"anchor\" name=\"raid\" id=\"raid\"><\/a><\/p>\n<details class=\"spoiler\">\n<summary>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u043e\u0434\u043d\u044f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e raid \u043d\u0430 mdadm. \u041d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u0445 \u0434\u0438\u0441\u043a\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043e \u0434\u0432\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0434\u043b\u044f \/var. \u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0434\u043b\u044f \u0438\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 mdadm \u043c\u043e\u0436\u043d\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0430 \u043f\u0440\u043e \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439 raid \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u044e.<br \/>\u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u044f \u043d\u0430\u0448\u0435\u043b &#8212; \u044d\u0442\u043e \u0431\u0440\u0430\u0442\u044c \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 sys. [<a href=\"http:\/\/vladimir-stupin.blogspot.com\/2017\/04\/raid-linux-zabbix.html\" rel=\"noopener noreferrer nofollow\">1<\/a>] [<a href=\"http:\/\/linuxshare.ru\/docs\/admin\/ud_sraid.html\" rel=\"noopener noreferrer nofollow\">2<\/a>]<br \/>\u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 &#8212; \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430. \u0411\u0443\u0434\u0443 \u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u043c\u044b\u0441\u043b\u0438 \u0447\u0442\u043e \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<\/div>\n<\/details>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 <br \/>cat \/proc\/mdstat<\/p>\n<p>\u0412\u0438\u0436\u0443 \u0447\u0442\u043e \u0442\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ar\/lo\/fo\/arlofoir2gjm4vjudb6uxfxujjc.png\" width=\"615\" height=\"175\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0434\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443<br \/><code>echo 'check' &gt;\/sys\/block\/md126\/md\/sync_action<br \/>echo 'check' &gt;\/sys\/block\/md127\/md\/sync_action<\/code><\/p>\n<p>\u0410 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u044f\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435<br \/><code>cat \/sys\/block\/md126\/md\/mismatch_cnt<br \/>cat \/sys\/block\/md127\/md\/mismatch_cnt<\/code><\/p>\n<p>\u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 0, \u0442\u043e \u0432\u0441\u0435 \u043e\u043a.<\/p>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438\u0437 \u043a\u0440\u043e\u043d\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438, \u0438\u043d\u0430\u0447\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b. <\/p>\n<h2>\u0421\u0431\u043e\u0440 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p><a class=\"anchor\" name=\"transmit\" id=\"transmit\"><\/a><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043a\u043b\u0438\u0435\u043d\u0442 mosquitto, \u0442\u043e \u0441\u0442\u0430\u0432\u0438\u043c \u0435\u0433\u043e:<br \/><code>apt-get install mosquitto-clients<\/code><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u043a\u0443\u0434\u0430 \u0441\u0432\u0435\u0434\u0435\u043c \u0432\u0441\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0431\u043e\u0440\u0430 \u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u042f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0442\u0440\u0438 \u0433\u0440\u0443\u043f\u043f\u044b &#8212; \u0447\u0430\u0441\u0442\u044b\u0435 (\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b), \u0441\u0440\u0435\u0434\u043d\u0438\u0435 (\u0441\u043e\u0441\u0442\u044f\u043d\u0438\u0435 raid \u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430), \u0438 \u0440\u0435\u0434\u043a\u0438\u0435 (\u0434\u0430\u043d\u043d\u044b\u0435 smart):<br \/><code>touch system.sh &amp;&amp; touch drives.sh &amp;&amp; touch smart.sh<br \/>chmod u+x system.sh &amp;&amp;&nbsp;chmod u+x drives.sh &amp;&amp;&nbsp;chmod u+x smart.sh <\/code><\/p>\n<p>\u0412 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0438\u0448\u0435\u043c:<\/p>\n<details class=\"spoiler\">\n<summary>system.sh<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">#!\/bin\/bash #\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u0440\u043e\u043a\u0435\u0440\u0430 \u0438 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 ip=xx.xx.xx.xx usr=\"xx\" pass=\"xx\"    tempdrive1=$(hddtemp \"\/dev\/sda\" -n) echo \"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0434\u0438\u0441\u043a\u0430 1: $tempdrive1\" tempdrive2=$(hddtemp \"\/dev\/sdb\" -n) echo \"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0434\u0438\u0441\u043a\u0430 2: $tempdrive2\"   tempcpu=$(sensors -A -u -j | jq '.[\"coretemp-isa-0000\"][\"Core 0\"].temp2_input') echo \"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430: $tempcpu\" fan=$(sensors -A -u -j | jq '.[\"it8720-isa-0290\"].fan1.fan1_input') echo \"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043a\u0443\u043b\u0435\u0440\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430: $fan\" temp3=$(sensors -A -u -j | jq '.[\"it8720-isa-0290\"].temp3.temp3_input') echo \"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: $temp3\"  totalram=$(free -m | grep \"Mem\" | awk '{print $2}') echo \"\u0412\u0441\u0435\u0433\u043e \u043f\u0430\u043c\u044f\u0442\u0438: $totalram\" usedram=$(free -m | grep \"Mem\" | awk '{print $3}') echo \"\u0412\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u043f\u0430\u043c\u044f\u0442\u0438: $usedram\" usedrampercent=$(($usedram * 100 \/ $totalram)) echo \"\u0412\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445: $usedrampercent\"  totalswap=$(free -m | grep \"Swap\" | awk '{print $2}') echo \"\u0412\u0441\u0435\u0433\u043e \u0441\u0432\u043e\u043f\u0430: $totalswap\" usedswap=$(free -m | grep \"Swap\" | awk '{print $3}') echo \"\u0412\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u0432\u043e\u043f\u0430: $usedswap\" usedswappercent=$(($usedswap * 100 \/ $totalswap)) echo \"\u0412\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u0432\u043e\u043f\u0430 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445: $usedswappercent\"  averageload=$(cat \/proc\/loadavg | awk '{print $3}') echo \"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: $averageload\"  uptimedata=$(uptime | awk '{print $3}' | sed 's\/,$\/\/') echo \"\u0410\u043f\u0442\u0430\u0439\u043c: $uptimedata\"  cpuidle=$(mpstat | grep all | awk '{print $13}') cpuload=$(echo \"100-$cpuidle\" | bc -l) #\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043e\u0441\u0442\u044b\u043b\u044c, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b bash \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0442\u043e\u0447\u043a\u0443 \u0432 \u043f\u043e\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 echo \"\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430: $cpuload\"   echo \" \" echo \"\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445\"  mosquitto_pub -h $ip -t \"srv\/tempdrive1\" -m $tempdrive1 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/tempdrive2\" -m $tempdrive2 -u $usr -P $pass  mosquitto_pub -h $ip -t \"srv\/tempcpu\" -m $tempcpu -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/fan\" -m $fan -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/temp3\" -m $temp3 -u $usr -P $pass  mosquitto_pub -h $ip -t \"srv\/usedrampercent\" -m $usedrampercent -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/usedswappercent\" -m $usedswappercent -u $usr -P $pass  mosquitto_pub -h $ip -t \"srv\/averageload\" -m $averageload -u $usr -P $pass  mosquitto_pub -h $ip -t \"srv\/uptimedata\" -m $uptimedata -u $usr -P $pass  mosquitto_pub -h $ip -t \"srv\/cpuload\" -m $cpuload -u $usr -P $pass <\/code><\/pre>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>drives.sh<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">#!\/bin\/bash #\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u0440\u043e\u043a\u0435\u0440\u0430 \u0438 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 ip=xx.xx.xx.xx usr=\"xx\" pass=\"xx\"    raid_system_status=$(cat \/sys\/block\/md126\/md\/mismatch_cnt) echo \"\u0418\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0441\u0442\u044c RAID \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430: $raid_system_status\" raid_var_status=$(cat \/sys\/block\/md127\/md\/mismatch_cnt) echo \"\u0418\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0441\u0442\u044c RAID \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445: $raid_var_status\"  freesystemdisk=$(df | grep \"\/dev\/md127p1\" | awk '{print $5}' | sed 's\/%$\/\/') echo \"\u0417\u0430\u043d\u044f\u0442\u043e \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435: $freesystemdisk\" freedatadisk=$(df | grep \"\/dev\/md126p1\" | awk '{print $5}' | sed 's\/%$\/\/') echo \"\u0417\u0430\u043d\u044f\u0442\u043e \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0434\u0430\u043d\u043d\u044b\u0445: $freedatadisk\"  echo \" \" echo \"\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445\"  mosquitto_pub -h $ip -t \"srv\/raid_system_status\" -m $raid_system_status -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/raid_var_status\" -m $raid_var_status -u $usr -P $pass  mosquitto_pub -h $ip -t \"srv\/freesystemdisk\" -m $freesystemdisk -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/freedatadisk\" -m $freedatadisk -u $usr -P $pass <\/code><\/pre>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>smart.sh<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">#!\/bin\/bash #\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0431\u0440\u043e\u043a\u0435\u0440\u0430 \u0438 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 ip=xx.xx.xx.xx usr=\"xx\" pass=\"xx\"    Raw_Read_Error_Rate1=$(smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[0].raw.value') echo \"SMART Raw_Read_Error_Rate \u0434\u0438\u0441\u043a\u0430 1: $Raw_Read_Error_Rate1\" Reallocated_Sector_Ct1=$(smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[3].raw.value') echo \"SMART Reallocated_Sector_Ct \u0434\u0438\u0441\u043a\u0430 1: $Reallocated_Sector_Ct1\" Seek_Error_Rate1=$(smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[4].raw.value') echo \"SMART Seek_Error_Rate \u0434\u0438\u0441\u043a\u0430 1: $Seek_Error_Rate1\" Spin_Retry_Count1=$(smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[6].raw.value') echo \"SMART Spin_Retry_Count \u0434\u0438\u0441\u043a\u0430 1: $Spin_Retry_Count1\" Reallocated_Event_Count1=$(smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[12].raw.value') echo \"SMART Reallocated_Event_Count \u0434\u0438\u0441\u043a\u0430 1: $Reallocated_Event_Count1\" Offline_Uncorrectable1=$(smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[14].raw.value') echo \"SMART Offline_Uncorrectable \u0434\u0438\u0441\u043a\u0430 1: $Offline_Uncorrectable1\"  smart_status1=$(smartctl -a \/dev\/sda -j | jq '.smart_status.passed') echo \"\u0418\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u0441\u043a\u0430 1: $smart_status1\"  Raw_Read_Error_Rate2=$(smartctl -a \/dev\/sdb -j | jq '.ata_smart_attributes.table[0].raw.value') echo \"SMART Raw_Read_Error_Rate \u0434\u0438\u0441\u043a\u0430 2: $Raw_Read_Error_Rate2\" Reallocated_Sector_Ct2=$(smartctl -a \/dev\/sdb -j | jq '.ata_smart_attributes.table[3].raw.value') echo \"SMART Reallocated_Sector_Ct \u0434\u0438\u0441\u043a\u0430 2: $Reallocated_Sector_Ct2\" Seek_Error_Rate2=$(smartctl -a \/dev\/sdb -j | jq '.ata_smart_attributes.table[4].raw.value') echo \"SMART Seek_Error_Rate \u0434\u0438\u0441\u043a\u0430 2: $Seek_Error_Rate2\" Spin_Retry_Count2=$(smartctl -a \/dev\/sdb -j | jq '.ata_smart_attributes.table[6].raw.value') echo \"SMART Spin_Retry_Count \u0434\u0438\u0441\u043a\u0430 2: $Spin_Retry_Count2\" Reallocated_Event_Count2=$(smartctl -a \/dev\/sdb -j | jq '.ata_smart_attributes.table[12].raw.value') echo \"SMART Reallocated_Event_Count \u0434\u0438\u0441\u043a\u0430 2: $Reallocated_Event_Count2\" Offline_Uncorrectable2=$(smartctl -a \/dev\/sdb -j | jq '.ata_smart_attributes.table[14].raw.value') echo \"SMART Offline_Uncorrectable \u0434\u0438\u0441\u043a\u0430 2: $Offline_Uncorrectable2\"  smart_status2=$(smartctl -a \/dev\/sdb -j | jq '.smart_status.passed') echo \"\u0418\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u0441\u043a\u0430 2: $smart_status2\"  echo \" \" echo \"\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445\"  mosquitto_pub -h $ip -t \"srv\/Raw_Read_Error_Rate1\" -m $Raw_Read_Error_Rate1 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Reallocated_Sector_Ct1\" -m $Reallocated_Sector_Ct1 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Seek_Error_Rate1\" -m $Seek_Error_Rate1 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Spin_Retry_Count1\" -m $Spin_Retry_Count1 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Reallocated_Event_Count1\" -m $Reallocated_Event_Count1 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Offline_Uncorrectable1\" -m $Offline_Uncorrectable1 -u $usr -P $pass  mosquitto_pub -h $ip -t \"srv\/Raw_Read_Error_Rate2\" -m $Raw_Read_Error_Rate2 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Reallocated_Sector_Ct2\" -m $Reallocated_Sector_Ct2 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Seek_Error_Rate2\" -m $Seek_Error_Rate2 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Spin_Retry_Count2\" -m $Spin_Retry_Count2 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Reallocated_Event_Count2\" -m $Reallocated_Event_Count2 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/Offline_Uncorrectable2\" -m $Offline_Uncorrectable2 -u $usr -P $pass  mosquitto_pub -h $ip -t \"srv\/smart_status1\" -m $smart_status1 -u $usr -P $pass mosquitto_pub -h $ip -t \"srv\/smart_status2\" -m $smart_status2 -u $usr -P $pass <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c, \u0443\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0447\u0442\u043e \u0432 \u043b\u043e\u0433\u0430\u0445 Mosquitto broker \u0432 Home Assistant \u0441\u0432\u0435\u0442\u044f\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/av\/ok\/qw\/avokqwhwlgwxndwjlfqaxoii3v8.png\" width=\"1077\" height=\"554\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0441\u0432\u0435\u0442\u044f\u0442\u0441\u044f, \u0442\u043e \u0438\u043b\u0438 \u043d\u0435\u0432\u0435\u0440\u043e \u0437\u0430\u0434\u0430\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 \u0431\u0440\u043e\u043a\u0435\u0440 \u0437\u0430\u043a\u0440\u044b\u0442 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0438\u0437\u0432\u043d\u0435, \u0438\u043b\u0438 \u043d\u0435 \u0437\u043d\u0430\u044e.<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432 Home Assistant<\/h2>\n<p><a class=\"anchor\" name=\"ha\" id=\"ha\"><\/a><\/p>\n<p>\u041d\u0443, \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 Home Assistant \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u0442\u0447\u0438\u043a\u0438.<\/p>\n<details class=\"spoiler\">\n<summary>\u0414\u043b\u0438\u043d\u043d\u044b\u0439 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">sensor:   - platform: mqtt     state_topic: \"srv\/tempdrive1\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0434\u0438\u0441\u043a\u0430 1\"     unit_of_measurement: \u00b0C   - platform: mqtt     state_topic: \"srv\/tempdrive2\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0434\u0438\u0441\u043a\u0430 2\"     unit_of_measurement: \u00b0C   - platform: mqtt     state_topic: \"srv\/tempcpu\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\"     unit_of_measurement: \u00b0C   - platform: mqtt     state_topic: \"srv\/fan\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043a\u0443\u043b\u0435\u0440\u0430\"     unit_of_measurement: ppm   - platform: mqtt     state_topic: \"srv\/temp3\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b\"     unit_of_measurement: \u00b0C   - platform: mqtt     state_topic: \"srv\/usedrampercent\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e RAM\"     unit_of_measurement: \"%\"   - platform: mqtt     state_topic: \"srv\/usedswappercent\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e SWAP\"     unit_of_measurement: \"%\"   - platform: mqtt     state_topic: \"srv\/freesystemdisk\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0437\u0430\u043d\u044f\u0442\u043e \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\"     unit_of_measurement: \"%\"   - platform: mqtt     state_topic: \"srv\/freedatadisk\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0437\u0430\u043d\u044f\u0442\u043e \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0434\u0430\u043d\u043d\u044b\u0445\"     unit_of_measurement: \"%\"   - platform: mqtt     state_topic: \"srv\/averageload\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b\"   - platform: mqtt     state_topic: \"srv\/uptimedata\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0430\u043f\u0442\u0430\u0439\u043c\"   - platform: mqtt     state_topic: \"srv\/cpuload\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\"     unit_of_measurement: \"%\"   - platform: mqtt     state_topic: \"srv\/Raw_Read_Error_Rate1\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 1 SMART Raw_Read_Error_Rate\"   - platform: mqtt     state_topic: \"srv\/Reallocated_Sector_Ct1\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 1 SMART Reallocated_Sector_Ct\"   - platform: mqtt     state_topic: \"srv\/Seek_Error_Rate1\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 1 SMART Seek_Error_Rate\"   - platform: mqtt     state_topic: \"srv\/Spin_Retry_Count1\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 1 SMART Spin_Retry_Count\"   - platform: mqtt     state_topic: \"srv\/Reallocated_Event_Count1\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 1 SMART Reallocated_Event_Count\"   - platform: mqtt     state_topic: \"srv\/Offline_Uncorrectable1\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 1 SMART Offline_Uncorrectable\"   - platform: mqtt     state_topic: \"srv\/smart_status1\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 1 SMART \u0441\u0442\u0430\u0442\u0443\u0441\"   - platform: mqtt     state_topic: \"srv\/Raw_Read_Error_Rate2\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 2 SMART Raw_Read_Error_Rate\"   - platform: mqtt     state_topic: \"srv\/Reallocated_Sector_Ct2\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 2 SMART Reallocated_Sector_Ct\"   - platform: mqtt     state_topic: \"srv\/Seek_Error_Rate2\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 2 SMART Seek_Error_Rate\"   - platform: mqtt     state_topic: \"srv\/Spin_Retry_Count2\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 2 SMART Spin_Retry_Count\"   - platform: mqtt     state_topic: \"srv\/Reallocated_Event_Count2\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 2 SMART Reallocated_Event_Count\"   - platform: mqtt     state_topic: \"srv\/Offline_Uncorrectable2\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 2 SMART Offline_Uncorrectable\"   - platform: mqtt     state_topic: \"srv\/smart_status2\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud \u0434\u0438\u0441\u043a 2 SMART \u0441\u0442\u0430\u0442\u0443\u0441\"   - platform: mqtt     state_topic: \"srv\/raid_system_status\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud RAID \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430\"   - platform: mqtt     state_topic: \"srv\/raid_var_status\"     name: \"\u0421\u0435\u0440\u0432\u0435\u0440 nextcloud RAID \u0441\u0442\u0430\u0442\u0443\u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\"<\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0449\u0435 \u0440\u0430\u0437\u043e\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437, \u0438 \u0432\u0441\u0435! \u0414\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u043d\u0430 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u0435. \u0421\u043c\u044b\u0441\u043b\u0430 \u0432 \u043d\u0435\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u0442\u043e \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0434\u0430\u0448\u0431\u043e\u0440\u0434, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f\u0445. \u041d\u043e \u043f\u0443\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fr\/lp\/be\/frlpbeb8talrjvycijn9b5tzuqy.png\" width=\"1450\" height=\"828\"><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0431\u0435\u0434\u0438\u0432\u0448\u0438\u0441\u044c \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432 \u043a\u0440\u043e\u043d. \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u044f \u043f\u0435\u0440\u0435\u0434\u0430\u044e \u0440\u0430\u0437 \u0432 \u043f\u043e\u043b\u0447\u0430\u0441\u0430, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u043e\u0432 \u0440\u0430\u0437 \u0432 \u0447\u0430\u0441, \u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 smart \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438.<\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u043d\u0435 \u043f\u0430\u043d\u0430\u0446\u0435\u044f, \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u043d\u0430\u0434\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043c\u0435\u0441\u0442\u0435. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0442\u043e\u0439 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 -&gt; \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u043a \u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u0432\u0438\u0434\u0443 -&gt; \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 mqtt.<br \/>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043e\u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 &#8212; \u043a\u043e\u0433\u0434\u0430 linux \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0437\u0432\u0443\u043a\u0438. <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0443\u043c\u043d\u043e\u043c \u0434\u043e\u043c\u0435 &#8212; \u0438\u043c\u0435\u044f \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0443 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0449\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0425\u043e\u0442\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0431\u044b \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u043c\u044b\u0441\u043b \u0432\u0441\u0435 \u0436\u0435 \u0435\u0441\u0442\u044c. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0438 \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u043b \u0432\u043e\u0441\u043a\u0440\u0435\u0441\u043d\u044b\u0439 \u0432\u0435\u0447\u0435\u0440.<\/p>\n<p>\u041d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u043c\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u043e\u0434 nextcloud. \u0415\u0433\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 HA, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u0447\u0443\u0434\u0435\u0441\u043d\u044b\u0439 api. \u0410 \u0443 HA \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f.<\/p>\n<\/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\/post\/547018\/\"> https:\/\/habr.com\/ru\/post\/547018\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043c\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u044f \u0437\u0430\u0434\u0430\u043b\u0441\u044f \u0446\u0435\u043b\u044c\u044e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u0443\u043c\u043d\u043e\u043c \u0434\u043e\u043c\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Home Assistant. \u0411\u044b\u0441\u0442\u0440\u043e\u0435 \u0438 \u043f\u043e\u0442\u043e\u043c \u0432\u0434\u0443\u043c\u0447\u0438\u0432\u043e\u0435 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u043d\u0435 \u0434\u0430\u043b\u043e \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u043c\u0435\u043d\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434.<\/p>\n<p>\u0412\u0432\u043e\u0434\u043d\u044b\u0435: \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0441\u0432\u043e\u043f\u0430, \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0430\u043f\u0442\u0430\u0439\u043c\u0430, \u043e\u0431\u0449\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 smart \u0434\u0438\u0441\u043a\u043e\u0432 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 raid (\u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 ubuntu server 20 \u043f\u043e\u0434\u043d\u044f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043e\u0444\u0442\u043e\u0432\u044b\u0439 raid1). \u0414\u0438\u0441\u043a\u0438 WD Green, \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430 GA-525 \u0441\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c atom525.<br \/>\u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430 \u0443\u0436\u0435 \u043f\u043e\u0434\u043d\u044f\u0442 \u0431\u0440\u043e\u043a\u0435\u0440 mosquitto, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0431\u0440\u0430\u043d mqtt.<br \/>\u0412 \u043f\u0435\u0440\u0432\u044b\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u0445 \u0441\u0435\u0433\u043e \u0442\u0440\u0443\u0434\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 &#8212; \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 HA.<br \/>\u0412\u0441\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root<\/p>\n<p><strong>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/strong><br \/><a href=\"#sensors\" rel=\"noopener noreferrer nofollow\">\u0421\u0431\u043e\u0440 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432<\/a><br \/><a href=\"#system\" rel=\"noopener noreferrer nofollow\">\u0421\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/a><br \/><a href=\"#drives\" rel=\"noopener noreferrer nofollow\">\u0421\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0436\u0435\u0441\u0442\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u043e\u0432<\/a><br \/><a href=\"#raid\" rel=\"noopener noreferrer nofollow\">\u0421\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 RAID<\/a><br \/><a href=\"#transmit\" rel=\"noopener noreferrer nofollow\">\u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/a><br \/><a href=\"#ha\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Home Assistant<\/a><\/p>\n<h2>\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432<\/h2>\n<p><a class=\"anchor\" name=\"sensors\" id=\"sensors\"><\/a><\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 <em>sensors<\/em><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0435\u0435:<br \/><code>apt-get install lm-sensors<\/code><\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0434\u043e \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0438. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <br \/><code>sensors-detect<\/code><br \/>\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u043c <strong>y<\/strong> \u043d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<br \/><code>sensors<\/code><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0434\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043b\u0438\u0447\u043d\u043e \u0443 \u043c\u0435\u043d\u044f sensors \u0441\u0442\u0430\u043b \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u0442\u0447\u0438\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041c\u043e\u0436\u0435\u0442 \u043a\u0430\u043a\u043e\u0439 \u0442\u043e \u0431\u0430\u0433, \u043d\u0435 \u0437\u043d\u0430\u044e.<\/p>\n<p>\u041d\u0430\u0434\u043e \u0431\u044b \u043a\u0430\u043a \u0442\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u0443 sensors \u0435\u0441\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 json, \u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0440\u044b\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u0434\u0430\u043f\u0442\u043e\u0440\u0430.<br \/><code>sensors -A -u -j<br \/><\/code>\u0412\u044b\u0434\u0430\u0441\u0442 \u0434\u043b\u0438\u043d\u043d\u044b\u0439 json. <a href=\"https:\/\/pastebin.com\/PDeFBqcg\" rel=\"noopener noreferrer nofollow\">\u0412\u043e\u0442 \u043c\u043e\u0439<\/a>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440.<code> <\/code><\/p>\n<p>\u041d\u0443 \u0432\u043e\u0442, \u0441 \u044d\u0442\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u0435\u0435. \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u0414\u043b\u044f \u0440\u0430\u0437\u0431\u043e\u0440\u0430 json \u043f\u0440\u044f\u043c\u043e \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0435\u0441\u0442\u044c \u0448\u0438\u043a\u0430\u0440\u043d\u0435\u0439\u0448\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 &#8212; <em>jp<\/em>. \u0415\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 &#8212; \u0434\u043b\u044f ubuntu \u043e\u043d\u0430 \u0435\u0441\u0442\u044c \u0432 \u043f\u0430\u043a\u0435\u0442\u0430\u0445:<br \/><code>apt-get install jq<\/code><\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c xpath \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430. \u041c\u043e\u0436\u043d\u043e \u0433\u043b\u0430\u0437\u0430\u043c\u0438, \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u044d\u0442\u043e\u0433\u043e  \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e <a href=\"https:\/\/jsonpathfinder.com\/\" rel=\"noopener noreferrer nofollow\">\u043e\u043d\u043b\u0430\u0439\u043d-\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430<\/a>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u044f\u043c\u043e \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441 \u0434\u0430\u043d\u043d\u044b\u0435. \u042f \u0445\u043e\u0447\u0443 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u043e\u0434\u043d\u043e\u0433\u043e \u044f\u0434\u0440\u0430 \u0445\u0432\u0430\u0442\u0438\u0442, \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a\u0443\u043b\u0435\u0440\u0430, \u0438 \u0435\u0449\u0435 \u043a\u0430\u043a\u043e\u0439 \u0442\u043e \u0442\u0440\u0435\u0442\u0438\u0439 \u0441\u0435\u043d\u0441\u043e\u0440 temp3, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0434\u043b\u044f \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0440\u043f\u0443\u0441\u0430:<br \/><code>sensors -A -u -j | jq '.[\"coretemp-isa-0000\"][\"Core 0\"].temp2_input'<br \/>sensors -A -u -j | jq '.[\"it8720-isa-0290\"].fan1.fan1_input'<br \/>sensors -A -u -j | jq '.[\"it8720-isa-0290\"].temp3.temp3_input'<\/code><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u041d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<p><a class=\"anchor\" name=\"system\" id=\"system\"><\/a><\/p>\n<p>\u0411\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0437\u0430\u043d\u044f\u0442\u043e\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0441\u0432\u0430\u043f\u0430, \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0435, \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0430\u043f\u0442\u0430\u0439\u043c\u0430.<\/p>\n<p><strong>\u0423\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438<\/strong>. \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e \u043c\u043e\u0435\u043c\u0443 &#8212; \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <em>free<\/em>. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043b\u043e\u043c\u0430\u0442\u044c \u0433\u043b\u0430\u0437\u0430, \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 -m, \u0432\u044b\u0432\u043e\u0434\u044f\u0449\u0438\u0439 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430\u0445.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0411\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e, \u0438 \u0438\u0437 \u043d\u0438\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u043e\u0431\u044b\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u043d\u0442, \u043d\u043e \u0432\u0434\u0440\u0443\u0433 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u0442\u043e\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. <br \/><code>free -m | grep \"Mem\" | awk '{print $2}'<\/code><\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 grep \u043e\u0442\u0434\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0430 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 awk &#8212; \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0446\u0438\u0444\u0440\u0443. \u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0430 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435. \u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0441\u0447\u0435\u0442\u0430.<\/p>\n<p><strong>\u0421\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445<\/strong> \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <em>df<\/em>. \u041d\u0443\u0436\u043d\u044b\u0435 \u043c\u043d\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0436\u0435 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445, \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u043e\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u0442 \u0436\u0435 \u043f\u043e\u0434\u0445\u043e\u0434, \u0447\u0442\u043e \u0438 \u0441 \u043f\u0430\u043c\u044f\u0442\u044c\u044e. \u0415\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0438\u0435 &#8212; \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0446\u0438\u0444\u0440\u0430, \u0430 \u0442\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430. \u0414\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<br \/><code>df<br \/>df | grep \"\/dev\/md127p1\" | awk '{print $5}' | sed 's\/%$\/\/'<br \/>df | grep \"\/dev\/md126p1\" | awk '{print $5}' | sed 's\/%$\/\/'<\/code><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0421\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 \/proc\/loadavg. \u041d\u0430\u0434\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u0446\u0438\u0444\u0440\u044b \u0442\u0430\u043c &#8212; \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0432 \u043f\u043e\u043f\u0443\u0433\u0430\u044f\u0445. \u041f\u0435\u0440\u0432\u044b\u0435 \u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0438\u043b\u0438 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f, \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0436\u0434\u0443\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430 \u0437\u0430 1, 5 \u0438 15 \u043c\u0438\u043d\u0443\u0442. \u0422\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0438 \u043d\u0435 \u0434\u043e\u043b\u044f \u043e\u0442 \u0446\u0435\u043b\u043e\u0433\u043e. \u041f\u0440\u043e\u0441\u0442\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0447\u0438\u0441\u043b\u0430, \u0442\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435 (\u0431\u043e\u043b\u044c\u0448\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b) \u0447\u0438\u0441\u043b\u043e \u0442\u0430\u043c \u044d\u0442\u043e \u043f\u043b\u043e\u0445\u043e, \u043f&#8217;\u043d\u044f\u0442\u043d\u0435\u043d\u044c\u043a\u043e?<br \/>\u042f \u0431\u0443\u0434\u0443 \u0431\u0440\u0430\u0442\u044c \u0437\u0430 15 \u043c\u0438\u043d\u0443\u0442:<br \/><code>cat \/proc\/loadavg | awk '{print $3}'<\/code><\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0410\u043f\u0442\u0430\u0439\u043c <\/strong>\u043d\u0430\u043c \u0434\u0430\u0441\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <em>uptime<\/em>:<br \/><code>uptime | awk '{print $3}' | sed 's\/,$\/\/'<\/code><\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0443 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 <strong>\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430<\/strong> \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b mpstat. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0443\u043c\u043c\u0438\u0440\u0443\u0435\u0442 \u044f\u0434\u0440\u0430, \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0432\u044b\u0434\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438 \u0442\u0443\u0442 \u0436\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u0422\u0443\u0442 \u0442\u043e\u0436\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043d\u043e \u0437\u0430\u0442\u043e \u0441\u0443\u043c\u043c\u0438\u0440\u0443\u044e\u0442 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u044f. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0446\u0438\u0444\u0440\u0443 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u043d\u0430\u0434\u043e \u0438\u043b\u0438 \u0438\u0437 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0432\u044b\u0447\u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0438\u043b\u0438 \u0441\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 mpstat \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430, \u0442\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <em>apt install sysstat. \u0418\u0442\u0430\u043a,<br \/><\/em><code>mpstat | grep all | awk '{print $13}'<\/code><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u043d\u044f\u0442\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441.<br \/>\u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u0443 \u043f\u043e\u0447\u0442\u0438 \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043d\u0435\u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043b\u043e\u043a\u0430\u043b\u0438 \u0442\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0437\u0430\u043f\u044f\u0442\u0430\u044f \u0430 \u0442\u043e\u0447\u043a\u0430. \u0414\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 bash \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u043b\u043e\u0445\u043e \u0443\u043c\u0435\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0441 \u0442\u043e\u0447\u043a\u043e\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 bc<br \/><code>cpuidle=$(mpstat | grep all | awk '{print $13}') <br \/>cpuload=$(echo \"100-$cpuidle\" | bc -l)<br \/>echo \"\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430: $cpuload\"<\/code><\/p>\n<h2>\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0436\u0435\u0441\u0442\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u043e\u0432<\/h2>\n<p><a class=\"anchor\" name=\"drives\" id=\"drives\"><\/a><\/p>\n<p><strong>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0434\u0438\u0441\u043a\u043e\u0432<\/strong> \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 hddtemp. \u0415\u0441\u043b\u0438 \u0435\u0435 \u043d\u0435\u0442, \u0441\u0442\u0430\u0432\u0438\u043c:<br \/><code>apt-get install hddtemp<\/code><\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u0440\u043e\u0441\u0442\u043e: \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0435\u0439 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0438 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c -n \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0448\u043d\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e SMART<\/strong> \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f smartmontools<br \/><code>apt-get install smartmontools<\/code><\/p>\n<p>\u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430 \u043a\u0430\u043a\u043e\u0439 \u0434\u0438\u0441\u043a \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0438 \u043a\u043b\u044e\u0447 -a, \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0430\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0430 \u043e \u0434\u0438\u0441\u043a\u0435.<br \/><code>smartctl -a \/dev\/sda<\/code><br \/>\u0423\u0442\u0438\u043b\u0438\u0442\u0430 \u0432\u044b\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442 \u0446\u0435\u043b\u0443\u044e \u0433\u043e\u0440\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043a\u0440\u0430\u043d\u043e\u0432. \u041d\u0435 \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0443\u0442 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b, \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e. \u0418\u0437 \u0432\u0441\u0435\u0439 \u044d\u0442\u043e\u0439 \u043a\u0443\u0447\u0438 \u043d\u0430\u0434\u043e \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435  \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438. \u042f \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u044d\u0442\u0438:<\/p>\n<p><strong>Raw_Read_Error_Rate<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0447\u0442\u0435\u043d\u0438\u044f. \u041d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u043e \u0441\u043a\u043e\u0440\u043e\u043c \u0432\u044b\u0445\u043e\u0434\u0435 \u0434\u0438\u0441\u043a\u0430 \u0438\u0437 \u0441\u0442\u0440\u043e\u044f. \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430\u0445 \u043f\u0438\u0448\u0443\u0442, \u0447\u0442\u043e \u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c. \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u043e \u043d\u0443\u043b\u044e. \u0410 \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043c, \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u043b\u043d\u043e\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430;<br \/> <strong>Reallocated_Sector_Ct<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0434\u0438\u0441\u043a\u0430;<br \/> <strong>Seek_Error_Rate<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u043f\u043b\u043e\u0445\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0434\u0438\u0441\u043a\u0430;<br \/> <strong>Spin_Retry_Count<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0439 \u0440\u0430\u0441\u043a\u0440\u0443\u0442\u043a\u0438. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u043f\u043b\u043e\u0445\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0434\u0438\u0441\u043a\u0430;<br \/> <strong>Reallocated_Event_Count<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432;<br \/> <strong>Offline_Uncorrectable<\/strong> \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043d\u044b\u0445 \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0451\u043d\u043d\u043e\u0439 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0445 \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 &#8212; \u0432\u044b\u0432\u043e\u0434 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 -j, \u0432\u043e\u0442 \u0442\u0430\u043a:<br \/><code>smartctl -a -j \/dev\/sda<\/code><\/p>\n<p>\u0412 \u043e\u0442\u0432\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0434\u043b\u0438\u043d\u043d\u044b\u0439 json, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0444\u0430\u0439\u043b. <a href=\"https:\/\/pastebin.com\/2i4g1p9V\" rel=\"noopener noreferrer nofollow\">\u0412\u043e\u0442 \u043c\u043e\u0439<\/a>. \u0412\u0430\u0448, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u044b\u043c. \u0412 \u044d\u0442\u043e\u043c \u0432\u043d\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043d\u0430\u0434\u043e \u0433\u043b\u0430\u0437\u0430\u043c\u0438 \u0438\u043b\u0438 \u0438\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c json xpath \u043a \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432 xpath, \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0446\u0438\u0444\u0440\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u043e\u0439 \u0436\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b jq, \u0432\u043e\u0442 \u0442\u0430\u043a (\u0432 \u043a\u043e\u043d\u0446\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438\u043c\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430):<\/p>\n<p><code>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[0].raw.value' #Raw_Read_Error_Rate<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[3].raw.value' #Reallocated_Sector_Ct<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[4].raw.value' #Seek_Error_Rate<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[6].raw.value' #Spin_Retry_Count<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[12].raw.value' #Reallocated_Event_Count<br \/>smartctl -a \/dev\/sda -j | jq '.ata_smart_attributes.table[14].raw.value' #Offline_Uncorrectable<\/code><\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0442\u0438\u043f\u0430 &#171;\u0442\u044b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043a\u0430\u0436\u0438 &#8212; \u0437\u0434\u043e\u0440\u043e\u0432 \u0442\u044b \u0438\u043b\u0438 \u043d\u0435\u0442&#187; &#8212; \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c -H, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435 \u0434\u0438\u0441\u043a\u0430. \u0423 \u0440\u0435\u0436\u0438\u043c\u0430 \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 -j, \u0432\u044b\u0432\u043e\u0434\u044f\u0449\u0438\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 json.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0432\u044b\u0434\u0435\u043b\u044f\u043c \u0435\u0433\u043e \u0438\u0437 json:<br \/><code>smartctl -a \/dev\/sda -j | jq '.smart_status.passed' #smart_status <\/code><\/p>\n<details class=\"spoiler\">\n<summary>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u043e\u0432\u0440\u0435\u043c\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0438\u0441\u043a, \u0441\u0430\u043c\u043e \u0441\u0435\u0431\u044f \u043e\u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442 (\u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435)<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0438\u0441\u043a\u043e\u0432 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u044e\u0442 \u0441\u0435\u0431\u044f \u0441\u0430\u043c\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0441\u0442\u0440\u0430\u0445\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u0430\u0434\u043e \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 cron \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0430. \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0433\u043e \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e \u0438 \u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u043e.<br \/><code>smartctl -t short \/dev\/sda<\/code> <br \/>\u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 2 \u043c\u0438\u043d\u0443\u0442<br \/><code>smartctl -t long \/dev\/sda<\/code><br \/> \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u0441\u0442, \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 1 \u0447\u0430\u0441\u0430.<br \/>\u0415\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0435\u0441\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u0434\u0435\u043c\u043e\u043d\u0430, smartd, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0438 \u043c\u043e\u0436\u0435\u0442 \u0434\u0430\u0436\u0435 \u0441\u043b\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b. \u041e\u0442\u0447\u0435\u0442\u043e\u0432 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u0430 \u0432\u043e\u0442 \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 smartd \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0433\u0443\u0433\u043b\u0438\u0442\u044c.<\/p>\n<\/div>\n<\/details>\n<h2>\u041f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f RAID<\/h2>\n<p><a class=\"anchor\" name=\"raid\" id=\"raid\"><\/a><\/p>\n<details class=\"spoiler\">\n<summary>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u043e\u0434\u043d\u044f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e raid \u043d\u0430 mdadm. \u041d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u0445 \u0434\u0438\u0441\u043a\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043e \u0434\u0432\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0434\u043b\u044f \/var. \u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0434\u043b\u044f \u0438\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 mdadm \u043c\u043e\u0436\u043d\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0430 \u043f\u0440\u043e \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439 raid \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u044e.<br \/>\u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u044f \u043d\u0430\u0448\u0435\u043b &#8212; \u044d\u0442\u043e \u0431\u0440\u0430\u0442\u044c \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 sys. [<a href=\"http:\/\/vladimir-stupin.blogspot.com\/2017\/04\/raid-linux-zabbix.html\" rel=\"noopener noreferrer nofollow\">1<\/a>] [<a href=\"http:\/\/linuxshare.ru\/docs\/admin\/ud_sraid.html\" rel=\"noopener noreferrer nofollow\">2<\/a>]<br \/>\u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 &#8212; \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430. \u0411\u0443\u0434\u0443 \u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u043c\u044b\u0441\u043b\u0438 \u0447\u0442\u043e \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<\/div>\n<\/details>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 <br \/>cat \/proc\/mdstat<\/p>\n<p>\u0412\u0438\u0436\u0443 \u0447\u0442\u043e \u0442\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0434\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443<br \/><code>echo 'check' &gt;\/sys\/block\/md126\/md\/sync_action<br \/>echo 'check' &gt;\/sys\/block\/md127\/md\/sync_action<\/code><\/p>\n<p>\u0410 \u043f\u043e\u0442\u043e\u043c <\/p>\n<p><\/br><\/p>\n<\/p>\n<\/div>\n<\/details>\n<p><\/br><\/br><\/p>\n<\/div>\n<\/details>\n<p><\/br><\/br><\/br><\/code><\/p>\n<\/p>\n<p><\/br><\/br><\/br><\/br><\/p>\n<p><\/br><\/p>\n<\/p>\n<p><\/code><\/br><\/br><\/p>\n<\/p>\n<p><\/br><\/p>\n<p><\/code><\/br><\/p>\n<\/p>\n<p><\/code><\/br><\/p>\n<\/p>\n<p><\/br><\/p>\n<p><\/br><\/br><\/p>\n<\/p>\n<p><\/br><\/br><\/br><\/br><\/br><\/p>\n<p><\/br><\/br><\/p>\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-319565","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319565","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=319565"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319565\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}