{"id":827,"date":"2020-11-19T09:26:25","date_gmt":"2020-11-19T06:26:25","guid":{"rendered":"https:\/\/mamaevbor.tk\/wiki\/?p=827"},"modified":"2020-12-03T17:42:28","modified_gmt":"2020-12-03T14:42:28","slug":"%d0%9f%d0%b5%d1%80%d0%b5%d0%b7%d0%b0%d0%b3%d1%80%d1%83%d0%b7%d0%ba%d0%b0-mikrotik-%d0%bf%d1%80%d0%b8-%d0%bd%d0%b5%d0%b4%d0%be%d1%81%d1%82%d1%83%d0%bf%d0%bd%d0%be%d1%81%d1%82%d0%b8-%d0%bd%d0%b5%d1%81","status":"publish","type":"post","link":"https:\/\/wiki.m-network.ru\/?p=827","title":{"rendered":"\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 Mikrotik \u043f\u0440\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0443\u0437\u043b\u043e\u0432"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">#Script\n :local checka [\/ping google.com count=5]\n :local checkb [\/ping ya.ru count=5]\n :local checkc [\/ping mail.ru count=5]\n :local uptime [\/system resource get uptime]\n :if ($uptime&gt;02:00:00) do={\n     :if ($checkb = 0) do={\n         :if ($checkc = 0) do={\n            :if ($checka = 0) do={\n                \/sy reboot\n             } \n         }\n     }\n  } else={\n             \/log error \"Min\"\n         }\n\n#Comand for add script in Mikrotik\n \/system scheduler add interval=2m name=\"Reboot if not ISP\" on-event=\":local checka [\/ping google.com count=5]\\r\\\n     \\n:local checkb [\/ping ya.ru count=5]\\r\\\n     \\n:local checkc [\/ping mail.ru count=5]\\r\\\n     \\n:local uptime [\/system resource get uptime]\\r\\\n     \\n\\r\\\n     \\n :if (\\$uptime&gt;02:00:00) do={\\r\\\n     \\n    :if (\\$checkb = 0) do={\\r\\\n     \\n        :if (\\$checkc = 0) do={\\r\\\n     \\n           :if (\\$checka = 0) do={\\r\\\n     \\n               \/sy reboot\\r\\\n     \\n            } \\r\\\n     \\n        }\\r\\\n     \\n    }\\r\\\n     \\n }\\r\\\n     \\n\" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=sep\/21\/2020 start-time=11:50:35<\/pre>\n\n\n\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0442\u0440\u0435\u0437 \u0443\u0437\u043b\u043e\u0432 (ya.ru, gmail.com, mail.ru) \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0438 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u0438\u043a\u0440\u043e\u0442\u0438\u043a\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 2-\u0445 \u0447\u0430\u0441\u043e\u0432 \u0442\u043e \u043e\u043d \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#Script :local checka [\/ping google.com count=5] :local checkb [\/ping ya.ru count=5] :local checkc [\/ping mail.ru count=5] :local uptime [\/system resource get uptime] :if ($uptime&gt;02:00:00) do={ :if ($checkb = 0) do={ :if ($checkc = 0) do={ :if ($checka = 0) do={ \/sy reboot } } } } else={ \/log error &#171;Min&#187; } #Comand for add script ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.m-network.ru\/?p=827\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[34],"tags":[67,78],"_links":{"self":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/827"}],"collection":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=827"}],"version-history":[{"count":2,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/827\/revisions"}],"predecessor-version":[{"id":852,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/827\/revisions\/852"}],"wp:attachment":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}