{"id":402712,"date":"2024-06-29T16:40:52","date_gmt":"2024-06-29T16:40:52","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=402712"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-29T16:40:52","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=402712","title":{"rendered":"<span>\u041a\u0430\u043a \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439 \u0432 slack \u0431\u0435\u0437 \u043e\u043f\u044b\u0442\u0430<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u044f \u0432 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u043f\u043e\u043c\u0438\u043c\u043e \u0432\u0441\u0435\u0445 \u043e\u0431\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0431\u044b\u043b\u0430 \u043e\u0431\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0438 \u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0441\u0432\u044f\u0437\u0438, \u0430 \u044d\u0442\u043e \u0432\u0441\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u043b\u043e\u0441\u044c \u043f\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Grafana \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0440\u0430\u043b \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438\u0437 Zabbix. \u041d\u0443 \u0430 \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0430\u043c\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0430\u043a\u043e\u0432\u0430 \u0447\u0442\u043e \u0442\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0438\u0434\u0438\u0448\u044c \u0437\u0430 \u0441\u0432\u043e\u0438\u043c \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043c\u0435\u0441\u0442\u043e\u043c, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0438\u0434\u0435\u044f \u044d\u0442\u043e \u0432\u0441\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u0432\u044f\u0437\u0438 \u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440. \u041d\u043e \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 zabbix \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a Grafana \u0442\u0430\u043a\u0436\u0435 (\u0438 \u0434\u0430, \u044f \u0437\u043d\u0430\u044e \u0447\u0442\u043e grafana \u0442\u043e\u0436\u0435 \u0443\u043c\u0435\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u043b\u0435\u0440\u0442\u044b). <\/p>\n<p> \u0422\u0430\u043a \u043a\u0430\u043a \u0436\u0435 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f. \u041f\u043e\u0434\u0443\u043c\u0430\u0432 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u044f \u043d\u0430\u0448\u0435\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u041f\u043e\u043d\u0438\u043c\u0430\u044e, \u043c\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442. \u0422\u0430\u043a \u043c\u043e\u0436\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u0430 \u043c\u043e\u0436\u0435\u0442 \u043a\u0442\u043e-\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e. \u0418\u043b\u0438 \u0436\u0435 \u043a\u0442\u043e-\u0442\u043e \u0441\u043a\u0430\u0436\u0435\u0442 \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u043b\u043e\u0445\u043e. <\/p>\n<p>\u041b\u043e\u0433\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0441\u0442\u0430, \u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b ping \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u0430, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 ping \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b, \u0442\u043e \u0432 99% \u043a\u0430\u043d\u0430\u043b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0441\u0430\u043c\u043e\u0433\u043e \u0431\u043e\u0442\u0430, \u0447\u0435\u0440\u0435\u0437 slack-api.<\/p>\n<ol>\n<li>\n<p>\u0417\u0430\u0448\u0435\u043b \u043d\u0430 api slack <a href=\"https:\/\/api.slack.com\/apps\" rel=\"noopener noreferrer nofollow\">https:\/\/api.slack.com\/apps<\/a><\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0448\u0435\u043b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 your apps<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043b \u0431\u043e\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043b \u0432\u0435\u0431\u0445\u0443\u043a \u0438 \u0432\u044b\u0431\u0440\u0430\u043b \u043a\u0430\u043d\u0430\u043b \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430 \u043f\u043e\u0434\u043e\u0431\u0438\u0438 <a href=\"https:\/\/hooks.slack.com\/services\/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\" rel=\"noopener noreferrer nofollow\">https:\/\/hooks.slack.com\/services\/xxxxxxxxxxx\/xxxxxxxxxxxxxxxx\/xxxxxxxxxxxxxxxx<\/a><\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u043a\u043e\u0434 bash \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0422\u0438\u043f\u0430 hello World. \u0412\u043e\u0442 \u044d\u0442\u043e \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0430\u043b\u0435\u0440\u0442\u043e\u0432<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/344\/924\/051\/344924051c29ba67d6cd8f2162c079fe.png\" alt=\"\u043a\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 Hello World\" title=\"\u043a\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 Hello World\" width=\"781\" height=\"136\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/344\/924\/051\/344924051c29ba67d6cd8f2162c079fe.png\"\/><figcaption>\u043a\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 Hello World<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0434\u043b\u044f \u043d\u0430\u0441<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash       provider1=xxx.xxx.xxx.xxx                    if \/bin\/ping -c 2 $sevlig > \/dev\/null 2> \/dev\/null     then echo '\u043a\u0430\u043d\u0430\u043b \u0432 \u043d\u043e\u0440\u043c\u0435';     else curl -X POST -H 'Content-type: application\/json' --data '{\"text\":\" \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u0430\u043d\u0430\u043b provider1\"}' https:\/\/hooks.slack.com\/services\/xxxx\/xxxx\/xxxxxx; fi<\/code><\/pre>\n<p>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043a \u043a\u043e\u0434\u0443<\/p>\n<ul>\n<li>\n<p><strong><em>#!\/bin\/bash<\/em><\/strong>\u00a0 \u00a0 &#8212;\u00a0 \u00a0\u044d\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430(UPD: \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044f \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043b\u0438, \u044d\u0442\u043e \u0432 \u043a\u0430\u043a\u043e\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f)<\/p>\n<\/li>\n<li>\n<p><strong><em>provider1=xxx.xxx.xxx.xxx<\/em><\/strong><\/p>\n<p>\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 ip-\u0430\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><strong><em>if \/bin\/ping -c 2 $sevlig > \/dev\/null 2> \/dev\/null<\/em><\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u0437\u0434\u0435\u0441\u044c \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 ping<\/p>\n<ul>\n<li>\n<p><em>\/<\/em><strong><em>bin\/ping -c 2<\/em><\/strong><em>\u00a0<\/em>&#8212; \u0441\u0430\u043c\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 ping, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0432\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438 \u0436\u0434\u0435\u043c \u043e\u0442\u0432\u0435\u0442<\/p>\n<\/li>\n<li>\n<p><strong><em>> \/dev\/null 2> \/dev\/null<\/em><\/strong>\u00a0 \u00a0&#8212;\u00a0 \u00a0\u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 null, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u0442\u0435\u043a\u0441\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0440\u0430\u0432\u0435\u043d 0, \u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u0441\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0431\u044b\u043b\u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u044c.<\/p>\n<\/li>\n<li>\n<p><strong><em>then echo &#8216;\u043a\u0430\u043d\u0430\u043b \u0432 \u043d\u043e\u0440\u043c\u0435&#8217;;<\/em><\/strong>\u00a0<\/p>\n<\/li>\n<li>\n<p>\u00a0&#8212;\u00a0 \u0442\u0443\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0431\u044b\u043b \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 0, \u0442.\u0435. \u043f\u043e\u0442\u0435\u0440\u044c \u043d\u0435 \u0431\u044b\u043b\u043e \u0438 \u043d\u0430 \u044d\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f.<\/p>\n<\/li>\n<li>\n<p><strong><em>else curl -X POST -H &#8216;Content-type: application\/json&#8217; &#8212;data &#8216;{&#171;text&#187;:&#187; \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u0430\u043d\u0430\u043b provider1 }&#8217;<\/em>\u00a0<\/strong><a href=\"https:\/\/hooks.slack.com\/services\/xxxxxxxx\/xxxxxxxxxxx\/xxxxxxxxxxxxxxxx\" rel=\"noopener noreferrer nofollow\"><strong>https:\/\/hooks.slack.com\/services\/xxxxxxxx\/xxxxxxxxxxx\/xxxxxxxxxxxxxxxx<\/strong><\/a><strong>;<\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u0435\u0441\u043b\u0438 \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0431\u044b\u043b \u043d\u0435 0, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439, \u0442.\u0435. \u0431\u044b\u043b\u0438 \u043f\u043e\u0442\u0435\u0440\u0438, \u0437\u043d\u0430\u0447\u0438\u0442 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u043a\u0430\u043d\u0430\u043b\u0430, \u0442\u043e\u0433\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u043e\u043d\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0443\u0436\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 curl \u0447\u0435\u0440\u0435\u0437 webhook \u0432 \u043a\u0430\u043d\u0430\u043b slack<\/p>\n<p><strong><em>fi\u00a0<\/em><\/strong>&#8212; \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u043a\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b bash \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043c\u043e\u0433 \u0441\u0430\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0441\u044f \u0440\u0430\u0437 \u0432 10 \u043c\u0438\u043d\u0443\u0442, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b crontab <\/p>\n<pre><code class=\"bash\"># Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf \/var\/backups\/home.tgz \/home\/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h  dom mon dow   command         *\/10 * * * * \/home\/us\/1.sh<\/code><\/pre>\n<p>\u0418 \u0432\u043e\u0442 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u0430, \u043c\u044b \u0432 slack \u0432\u0438\u0434\u0438\u043c \u0442\u0430\u043a\u043e\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/333\/303\/459\/33330345978ea93513010ea8fc3fbe1c.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0430\u043b\u0435\u0440\u0442\u0430\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0430\u043b\u0435\u0440\u0442\u0430\" width=\"622\" height=\"73\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/333\/303\/459\/33330345978ea93513010ea8fc3fbe1c.png\"\/><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u0430\u043b\u0435\u0440\u0442\u0430<\/figcaption><\/figure>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0447\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/590573\/\"> https:\/\/habr.com\/ru\/articles\/590573\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u044f \u0432 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u043f\u043e\u043c\u0438\u043c\u043e \u0432\u0441\u0435\u0445 \u043e\u0431\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0431\u044b\u043b\u0430 \u043e\u0431\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0438 \u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0441\u0432\u044f\u0437\u0438, \u0430 \u044d\u0442\u043e \u0432\u0441\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u043b\u043e\u0441\u044c \u043f\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Grafana \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0440\u0430\u043b \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438\u0437 Zabbix. \u041d\u0443 \u0430 \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0430\u043c\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0430\u043a\u043e\u0432\u0430 \u0447\u0442\u043e \u0442\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0438\u0434\u0438\u0448\u044c \u0437\u0430 \u0441\u0432\u043e\u0438\u043c \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043c\u0435\u0441\u0442\u043e\u043c, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0438\u0434\u0435\u044f \u044d\u0442\u043e \u0432\u0441\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u0432\u044f\u0437\u0438 \u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440. \u041d\u043e \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 zabbix \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a Grafana \u0442\u0430\u043a\u0436\u0435 (\u0438 \u0434\u0430, \u044f \u0437\u043d\u0430\u044e \u0447\u0442\u043e grafana \u0442\u043e\u0436\u0435 \u0443\u043c\u0435\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u043b\u0435\u0440\u0442\u044b). <\/p>\n<p> \u0422\u0430\u043a \u043a\u0430\u043a \u0436\u0435 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f. \u041f\u043e\u0434\u0443\u043c\u0430\u0432 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u044f \u043d\u0430\u0448\u0435\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u041f\u043e\u043d\u0438\u043c\u0430\u044e, \u043c\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442. \u0422\u0430\u043a \u043c\u043e\u0436\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u0430 \u043c\u043e\u0436\u0435\u0442 \u043a\u0442\u043e-\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e. \u0418\u043b\u0438 \u0436\u0435 \u043a\u0442\u043e-\u0442\u043e \u0441\u043a\u0430\u0436\u0435\u0442 \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u043b\u043e\u0445\u043e. <\/p>\n<p>\u041b\u043e\u0433\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0441\u0442\u0430, \u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b ping \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u0430, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 ping \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b, \u0442\u043e \u0432 99% \u043a\u0430\u043d\u0430\u043b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0441\u0430\u043c\u043e\u0433\u043e \u0431\u043e\u0442\u0430, \u0447\u0435\u0440\u0435\u0437 slack-api.<\/p>\n<ol>\n<li>\n<p>\u0417\u0430\u0448\u0435\u043b \u043d\u0430 api slack <a href=\"https:\/\/api.slack.com\/apps\" rel=\"noopener noreferrer nofollow\">https:\/\/api.slack.com\/apps<\/a><\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0448\u0435\u043b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 your apps<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043b \u0431\u043e\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043b \u0432\u0435\u0431\u0445\u0443\u043a \u0438 \u0432\u044b\u0431\u0440\u0430\u043b \u043a\u0430\u043d\u0430\u043b \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430 \u043f\u043e\u0434\u043e\u0431\u0438\u0438 <a href=\"https:\/\/hooks.slack.com\/services\/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\" rel=\"noopener noreferrer nofollow\">https:\/\/hooks.slack.com\/services\/xxxxxxxxxxx\/xxxxxxxxxxxxxxxx\/xxxxxxxxxxxxxxxx<\/a><\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u043a\u043e\u0434 bash \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0422\u0438\u043f\u0430 hello World. \u0412\u043e\u0442 \u044d\u0442\u043e \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0430\u043b\u0435\u0440\u0442\u043e\u0432<\/p>\n<figure class=\"full-width\"><figcaption>\u043a\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 Hello World<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0434\u043b\u044f \u043d\u0430\u0441<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash       provider1=xxx.xxx.xxx.xxx                    if \/bin\/ping -c 2 $sevlig > \/dev\/null 2> \/dev\/null     then echo '\u043a\u0430\u043d\u0430\u043b \u0432 \u043d\u043e\u0440\u043c\u0435';     else curl -X POST -H 'Content-type: application\/json' --data '{\"text\":\" \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u0430\u043d\u0430\u043b provider1\"}' https:\/\/hooks.slack.com\/services\/xxxx\/xxxx\/xxxxxx; fi<\/code><\/pre>\n<p>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043a \u043a\u043e\u0434\u0443<\/p>\n<ul>\n<li>\n<p><strong><em>#!\/bin\/bash<\/em><\/strong>\u00a0 \u00a0 &#8212;\u00a0 \u00a0\u044d\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430(UPD: \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044f \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043b\u0438, \u044d\u0442\u043e \u0432 \u043a\u0430\u043a\u043e\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f)<\/p>\n<\/li>\n<li>\n<p><strong><em>provider1=xxx.xxx.xxx.xxx<\/em><\/strong><\/p>\n<p>\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 ip-\u0430\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><strong><em>if \/bin\/ping -c 2 $sevlig > \/dev\/null 2> \/dev\/null<\/em><\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u0437\u0434\u0435\u0441\u044c \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 ping<\/p>\n<ul>\n<li>\n<p><em>\/<\/em><strong><em>bin\/ping -c 2<\/em><\/strong><em>\u00a0<\/em>&#8212; \u0441\u0430\u043c\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 ping, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0432\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438 \u0436\u0434\u0435\u043c \u043e\u0442\u0432\u0435\u0442<\/p>\n<\/li>\n<li>\n<p><strong><em>> \/dev\/null 2> \/dev\/null<\/em><\/strong>\u00a0 \u00a0&#8212;\u00a0 \u00a0\u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 null, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u0442\u0435\u043a\u0441\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0440\u0430\u0432\u0435\u043d 0, \u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u0432\u0441\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0431\u044b\u043b\u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u044c.<\/p>\n<\/li>\n<li>\n<p><strong><em>then echo &#8216;\u043a\u0430\u043d\u0430\u043b \u0432 \u043d\u043e\u0440\u043c\u0435&#8217;;<\/em><\/strong>\u00a0<\/p>\n<\/li>\n<li>\n<p>\u00a0&#8212;\u00a0 \u0442\u0443\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0431\u044b\u043b \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 0, \u0442.\u0435. \u043f\u043e\u0442\u0435\u0440\u044c \u043d\u0435 \u0431\u044b\u043b\u043e \u0438 \u043d\u0430 \u044d\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f.<\/p>\n<\/li>\n<li>\n<p><strong><em>else curl -X POST -H &#8216;Content-type: application\/json&#8217; &#8212;data &#8216;{&#171;text&#187;:&#187; \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u0430\u043d\u0430\u043b provider1 }&#8217;<\/em>\u00a0<\/strong><a href=\"https:\/\/hooks.slack.com\/services\/xxxxxxxx\/xxxxxxxxxxx\/xxxxxxxxxxxxxxxx\" rel=\"noopener noreferrer nofollow\"><strong>https:\/\/hooks.slack.com\/services\/xxxxxxxx\/xxxxxxxxxxx\/xxxxxxxxxxxxxxxx<\/strong><\/a><strong>;<\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u0435\u0441\u043b\u0438 \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0431\u044b\u043b \u043d\u0435 0, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439, \u0442.\u0435. \u0431\u044b\u043b\u0438 \u043f\u043e\u0442\u0435\u0440\u0438, \u0437\u043d\u0430\u0447\u0438\u0442 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u043a\u0430\u043d\u0430\u043b\u0430, \u0442\u043e\u0433\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u043e\u043d\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0443\u0436\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 curl \u0447\u0435\u0440\u0435\u0437 webhook \u0432 \u043a\u0430\u043d\u0430\u043b slack<\/p>\n<p><strong><em>fi\u00a0<\/em><\/strong>&#8212; \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u043a\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b bash \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043c\u043e\u0433 \u0441\u0430\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0441\u044f \u0440\u0430\u0437 \u0432 10 \u043c\u0438\u043d\u0443\u0442, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b crontab <\/p>\n<pre><code class=\"bash\"># Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf \/var\/backups\/home.tgz \/home\/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h  dom mon dow   command         *\/10 * * * * \/home\/us\/1.sh<\/code><\/pre>\n<p>\u0418 \u0432\u043e\u0442 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u0430, \u043c\u044b \u0432 slack \u0432\u0438\u0434\u0438\u043c \u0442\u0430\u043a\u043e\u0435:<\/p>\n<figure class=\"full-width\"><figcaption>\u041f\u0440\u0438\u043c\u0435\u0440 \u0430\u043b\u0435\u0440\u0442\u0430<\/figcaption><\/figure>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0447\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/590573\/\"> https:\/\/habr.com\/ru\/articles\/590573\/<\/a><br \/><\/br><\/br><\/p>\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-402712","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/402712","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=402712"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/402712\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=402712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=402712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=402712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}