{"id":704,"date":"2020-01-20T22:12:01","date_gmt":"2020-01-20T21:12:01","guid":{"rendered":"http:\/\/qnap2\/WordPress\/?p=704"},"modified":"2020-01-20T23:07:12","modified_gmt":"2020-01-20T22:07:12","slug":"snmp","status":"publish","type":"post","link":"https:\/\/r-raimann.de\/WordPress\/snmp\/","title":{"rendered":"SNMP"},"content":{"rendered":"<p><!--more--><\/p>\n<h3 class=\"code\">Installation<\/h3>\n<pre class=\"code\">sudo apt-get install -y snmpd snmp snmp-mibs-downloader\r\nsudo cpan install use Net::SNMP<\/pre>\n<h3>FHEM Definition<\/h3>\n<pre>defmod &lt;fhem-device&gt; SYSSTAT 60 600 &lt;ip-or-name&gt;<\/pre>\n<pre>attr &lt;fhem-device&gt; snmp 1\r\nattr &lt;fhem-device&gt; snmpCommunity public\r\nattr &lt;fhem-device&gt; snmpVersion 2<\/pre>\n<div class=\"level3\">\n<pre class=\"code\">attr &lt;fhem-device&gt; mibs &lt;OID&gt;:&lt;name&gt; ,&lt;OID&gt;:&lt;name&gt;<\/pre>\n<pre>.1.3.6.1.4.1.24681.1.2.12.0:model_name ,\r\n.1.3.6.1.4.1.24681.1.2.2.0:system_mem_total ,\r\n.1.3.6.1.4.1.24681.1.2.3.0:system_mem_free ,\r\n.1.3.6.1.4.1.24681.1.2.17.1.4.1:storage_mem_total ,\r\n.1.3.6.1.4.1.24681.1.2.17.1.5.1:storage_mem_free ,\r\n.1.3.6.1.4.1.24681.1.2.4.0:system_uptime ,\r\n.1.3.6.1.4.1.24681.1.2.6.0:system_temperature ,\r\n.1.3.6.1.4.1.24681.1.2.11.1.3.1:storage_temperature_hdd1 ,\r\n.1.3.6.1.4.1.24681.1.2.11.1.3.2:storage_temperature_hdd2 ,\r\n.1.3.6.1.4.1.24681.1.2.11.1.7.1:storage_status_hdd1 ,\r\n.1.3.6.1.4.1.24681.1.2.11.1.7.2:storage_status_hdd2<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[16,13,15],"tags":[60,116,139,138],"class_list":["post-704","post","type-post","status-publish","format-standard","hentry","category-fhem","category-it","category-linux","tag-fhem","tag-linux","tag-mibs","tag-snmp"],"_links":{"self":[{"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/posts\/704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":4,"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":738,"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/posts\/704\/revisions\/738"}],"wp:attachment":[{"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/r-raimann.de\/WordPress\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}