{"id":6544,"date":"2025-03-18T14:52:22","date_gmt":"2025-03-18T12:52:22","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=6544"},"modified":"2025-03-18T14:52:55","modified_gmt":"2025-03-18T12:52:55","slug":"zabbix-%d1%86%d1%96%d0%ba%d0%b0%d0%b2%d0%b0-%d0%bf%d1%80%d0%be%d0%b1%d0%bb%d0%b5%d0%bc%d0%b0-%d0%b7-uptime","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=6544","title":{"rendered":"[zabbix] \u0426\u0456\u043a\u0430\u0432\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0437 uptime"},"content":{"rendered":"\n<p>\u041d\u0435\u0449\u043e\u0434\u0430\u0432\u043d\u043e \u0437\u0456\u0448\u0442\u043e\u0432\u0445\u043d\u0443\u0432\u0441\u044f \u0456\u0437 \u0442\u0438\u043c, \u0449\u043e <strong>zabbix <\/strong>\u043f\u0440\u043e\u0441\u0438\u0433\u043d\u0430\u043b\u0456\u0437\u0443\u0432\u0430\u0432, \u0449\u043e \u0437\u043c\u0456\u043d\u0438\u0432\u0441\u044f <strong>uptime <\/strong>\u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u0456\u0437 <strong>juniper <\/strong>\u043a\u043e\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0456\u0432. \u041f\u0440\u0438 \u0446\u044c\u043e\u043c\u0443, \u0432\u0441\u0435 \u043f\u0440\u0430\u0446\u044e\u0454, \u043d\u0456\u044f\u043a\u0438\u0445 \u043f\u0440\u043e\u0432\u0430\u043b\u0456\u0432 \u043f\u043e \u0441\u0435\u0440\u0432\u0456\u0441\u0430\u043c \u0447\u0438 \u0442\u0440\u0430\u0444\u0456\u043a\u0443. \u041f\u0440\u0438 \u0437\u0430\u043f\u0438\u0442\u0456 \u0447\u0435\u0440\u0435\u0437 <strong>SNMP <\/strong>\u0434\u043e \u043a\u043e\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430, \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439, \u0434\u0456\u0439\u0441\u043d\u043e \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 uptime<\/p>\n\n\n\n<p><code>$ snmpwalk -v 2c -c SecretCommunity XX.XX.XX.XX 1.3.6.1.2.1.1.3.0<br>\nDISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (105129517) 12 days, 4:01:35.17<\/code><\/p>\n\n\n\n<p>\u041f\u043e\u0448\u0443\u043a \u0432 \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0456 \u0434\u0430\u0454 <a href=\"https:\/\/www.zabbix.com\/forum\/zabbix-help\/47245-snmp-uptime-overflow-after-497-days\/page2\">\u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c<\/a>, \u0449\u043e \u043f\u0435\u0440\u0435\u043f\u043e\u0432\u043d\u044e\u044e\u0442\u044c\u0441\u044f \u043b\u0456\u0447\u0438\u043b\u044c\u043d\u0438\u043a\u0438 \u0456 \u0437\u0430\u043c\u0456\u0441\u0442\u044c &#8220;<strong>sysUpTimeInstance<\/strong>&#8221; \u0442\u0440\u0435\u0431\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 &#8220;<strong>snmpEngineTime.0<\/strong>&#8220;. \u0414\u0456\u0439\u0441\u043d\u043e, \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f<\/p>\n\n\n\n<p><code>$ snmpwalk -v 2c -c SecretCommunity XX.XX.XX.XX 1.3.6.1.6.3.10.2.1.3<br>\nSNMP-FRAMEWORK-MIB::snmpEngineTime.0 = INTEGER: 86950772 seconds<\/code><\/p>\n\n<p><!--more--><\/p>\n\n<p>\u041e\u0442\u0436\u0435, \u043f\u0438\u0442\u0430\u043d\u043d\u044f \u043f\u0440\u043e\u0441\u0442\u0435 \u0456 \u0448\u0432\u0438\u0434\u043a\u043e \u0432\u0438\u0440\u0456\u0448\u0435\u043d\u0435. \u0410\u043b\u0435! \u0426\u0435 \u0431\u0443\u043b\u043e \u0431 \u0437\u0430\u043d\u0430\u0434\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043b\u044f \u0447\u0435\u0440\u0433\u043e\u0432\u043e\u0457 \u0441\u0442\u0430\u0442\u0442\u0456, \u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0443\u0454\u043c\u043e \u0434\u0430\u043b\u0456. \u041f\u0440\u043e\u0441\u0442\u0430 \u043f\u0456\u0434\u043c\u0456\u043d\u0430 <strong>OID <\/strong>\u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0456 <strong>zabbix <\/strong>\u043d\u0435 \u0432\u0438\u0440\u0456\u0448\u0443\u0454 \u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u0431\u043e <strong>zabbix <\/strong>\u043d\u0435 \u043c\u043e\u0436\u0435 \u0437\u043d\u0430\u0439\u0442\u0438 \u0432\u043a\u0430\u0437\u0430\u043d\u0438\u0439 <strong>OID<\/strong>. \u0406 \u0434\u0456\u0439\u0441\u043d\u043e, <strong>tcpdump <\/strong>\u043a\u0430\u0436\u0435 \u0446\u0435:<\/p>\n\n\n\n<p><code>13:17:35.678604 IP XX.XX.XX.XX.161 &gt; YY.YY.YY.53808:&nbsp; C=\"SecretCommunity\" GetResponse(29)&nbsp; .1.3.6.1.6.3.10.2.1.3=[noSuchInstance]<\/code><\/p>\n\n\n\n<p>\u042f \u0437\u043d\u0430\u044e, \u0449\u043e \u0437\u0430\u043c\u0456\u0441\u0442\u044c <strong>OID <\/strong>\u043c\u043e\u0436\u043d\u0430 \u0437\u0432\u0435\u0440\u0442\u0430\u0442\u0438\u0441\u044f \u0456 \u0437\u0430 <strong>canonical name<\/strong>, \u044f\u043a\u0449\u043e \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0438\u0439 <strong>OID <\/strong>\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0432 <strong>MIB<\/strong>-\u0431\u0430\u0437\u0456. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043f\u0440\u043e\u0431\u0443\u0454\u043c\u043e \u0446\u0435. <a href=\"https:\/\/mibbrowser.online\/mibdb_search.php?mib=SNMP-FRAMEWORK-MIB\">\u0421\u043a\u0430\u0447\u0443\u0454\u043c\u043e <\/a>\u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0438\u0439 <strong>MIB<\/strong>-\u0444\u0430\u0439\u043b \u0456 \u0434\u043e\u0434\u0430\u0454\u043c\u043e \u0434\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0457 \u0431\u0430\u0437\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456. \u041f\u0456\u0441\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u0430 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0456 <strong>zabbix <\/strong>\u0432 \u043f\u043e\u043b\u0456 <strong>SNMP OID<\/strong> \u0432\u043f\u0438\u0441\u0443\u0454\u043c\u043e <strong>canonical name<\/strong> (\u0441\u0430\u043c\u0435 \u0439\u043e\u0433\u043e, \u0431\u043e \u0447\u0435\u0440\u0435\u0437 <strong>OID <\/strong>\u0442\u0430\u043a \u0456 \u043d\u0435 \u0437\u0430\u043f\u0440\u0430\u0446\u044e\u0432\u0430\u043b\u043e) &#8220;<strong>snmpEngineTime.0<\/strong>&#8221; \u0456 \u0442\u0435\u043f\u0435\u0440 \u0432\u0441\u0435 \u043f\u0440\u0430\u0446\u044e\u0454, \u044f\u043a \u0442\u0440\u0435\u0431\u0430.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435\u0449\u043e\u0434\u0430\u0432\u043d\u043e \u0437\u0456\u0448\u0442\u043e\u0432\u0445\u043d\u0443\u0432\u0441\u044f \u0456\u0437 \u0442\u0438\u043c, \u0449\u043e zabbix \u043f\u0440\u043e\u0441\u0438\u0433\u043d\u0430\u043b\u0456\u0437\u0443\u0432\u0430\u0432, \u0449\u043e \u0437\u043c\u0456\u043d\u0438\u0432\u0441\u044f uptime \u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u0456\u0437 juniper \u043a\u043e\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0456\u0432. \u041f\u0440\u0438 \u0446\u044c\u043e\u043c\u0443, \u0432\u0441\u0435 \u043f\u0440\u0430\u0446\u044e\u0454, \u043d\u0456\u044f\u043a\u0438\u0445 \u043f\u0440\u043e\u0432\u0430\u043b\u0456\u0432 \u043f\u043e \u0441\u0435\u0440\u0432\u0456\u0441\u0430\u043c \u0447\u0438 \u0442\u0440\u0430\u0444\u0456\u043a\u0443. \u041f\u0440\u0438 \u0437\u0430\u043f\u0438\u0442\u0456 \u0447\u0435\u0440\u0435\u0437 SNMP \u0434\u043e \u043a\u043e\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430, \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439, \u0434\u0456\u0439\u0441\u043d\u043e \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 uptime $ snmpwalk -v 2c -c SecretCommunity XX.XX.XX.XX 1.3.6.1.2.1.1.3.0 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (105129517) 12 days, 4:01:35.17 \u041f\u043e\u0448\u0443\u043a \u0432 \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0456 \u0434\u0430\u0454 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-6544","post","type-post","status-publish","format-standard","hentry","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6544"}],"version-history":[{"count":2,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6544\/revisions"}],"predecessor-version":[{"id":6546,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6544\/revisions\/6546"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}