{"id":40,"date":"2018-10-14T19:09:31","date_gmt":"2018-10-14T19:09:31","guid":{"rendered":"http:\/\/hanasavi.ir\/?p=40"},"modified":"2018-10-20T06:52:57","modified_gmt":"2018-10-20T06:52:57","slug":"create-items","status":"publish","type":"post","link":"https:\/\/hanasavi.ir\/index.php\/2018\/10\/14\/create-items\/","title":{"rendered":"Create Items:"},"content":{"rendered":"<p>For creating Item, we can create Application firstly,For example create a application with &#8216;CPU&#8217; Name for all Item&#8217;s that get the cpu parameter like as CpuIdle, CpuUsage ,etc&#8230;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-220 aligncenter\" src=\"http:\/\/hanasavi.ir\/wp-content\/uploads\/2018\/10\/item-236x300.png\" alt=\"\" width=\"741\" height=\"942\" srcset=\"https:\/\/hanasavi.ir\/wp-content\/uploads\/2018\/10\/item-236x300.png 236w, https:\/\/hanasavi.ir\/wp-content\/uploads\/2018\/10\/item.png 596w\" sizes=\"(max-width: 741px) 100vw, 741px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Here , I made some Example to create Item for selected Host(selected host is a Cisco Router device):<\/p>\n<p><strong>Example 1:<\/strong><\/p>\n<ul>\n<li><strong>name<\/strong>:cpuIdle-Router1<\/li>\n<li><strong>Type<\/strong>: snmp v2<\/li>\n<\/ul>\n<p>(I set snmp v2 for this Router <a href=\"http:\/\/hanasavi.ir\/index.php\/2018\/10\/14\/set-snmp-v2-on-cisco-routerswitchs\/\">here)<\/a><\/p>\n<ul>\n<li><strong>key<\/strong> :CPUIdleR1<\/li>\n<li><strong>snmp OID<\/strong> : 1.3.6.1.4.1.9.2.1.59.0<\/li>\n<\/ul>\n<p>(all device have a uniqe OID for each item)<\/p>\n<ul>\n<li><strong>Snmp community<\/strong>: MOHA<\/li>\n<li><strong>Interval<\/strong> :10 (s)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Example 2:<\/strong><\/p>\n<ul>\n<li><strong>name<\/strong> : CPUUsageRouter1<\/li>\n<li><strong>snmpOID<\/strong> : 1.3.6.1.4.1.9.2.1.56.0<\/li>\n<\/ul>\n<p>(other fild is like as example1)<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Example 3:<\/strong><\/p>\n<ul>\n<li><strong>name<\/strong> : MemoryFree-Router1<\/li>\n<li><strong>snmpOid<\/strong> : 1.3.6.1.4.1.9.9.48.1.1.1.6.1<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Example 4:<\/strong><\/p>\n<ul>\n<li><strong>name<\/strong> : MemoryUsage-Router1<\/li>\n<li><strong>Snamp OID<\/strong> : 1.3.6.1.4.1.9.9.48.1.1.1.5.1<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Example 5 :<\/strong><\/p>\n<ul>\n<li><strong>name<\/strong> : IFInOctets-Router1:<\/li>\n<li><strong>snmpOID<\/strong>: 1.3.6.1.2.1.2.2.1.1.0.1 (here, the last number is the index of interface)<\/li>\n<li><strong>units<\/strong>: bps<\/li>\n<li><strong>userCustome mulitiuser<\/strong> :8<\/li>\n<li><strong>Interval<\/strong> : 5 sec<\/li>\n<li><strong>Sto Value<\/strong> : Delta(speed\/secound)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Example 6:<\/strong><\/p>\n<ul>\n<li><strong>name<\/strong> : IFOutOctect-Router1<\/li>\n<li><strong>snmp Oid<\/strong> : 1.3.6.1.2.1.2.2.1.16.<strong>1<\/strong>(here,\u00a0the last number is the index of interface )<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>we can find Cisco device Interface&#8217;s index with this command:<\/p>\n<pre class=\"lang:default decode:true \"># sh snmp mib ifmib ifindex<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For creating Item, we can create Application firstly,For example create a application with &#8216;CPU&#8217; Name for all Item&#8217;s that get the cpu parameter like as CpuIdle, CpuUsage ,etc&#8230; &nbsp; Here , I made some Example to create Item for selected Host(selected host is a Cisco Router device): Example 1: name:cpuIdle-Router1 Type: snmp v2 (I set&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[14,9,8],"_links":{"self":[{"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/posts\/40"}],"collection":[{"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":3,"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":221,"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/posts\/40\/revisions\/221"}],"wp:attachment":[{"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hanasavi.ir\/index.php\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}