1"use strict";(self.webpackChunkmetricshub_doc=self.webpackChunkmetricshub_doc||[]).push([["22222"],{874(e,n,t){t.r(n),t.d(n,{metadata:()=>r,default:()=>u,frontMatter:()=>o,contentTitle:()=>a,toc:()=>d,assets:()=>l});var r=JSON.parse('{"id":"connectors/mib2linux","title":"MIB-2 Standard SNMP Agent - Network Interfaces - Linux","description":"This connector discovers the enclosure and the Ethernet ports of a system equipped with an MIB-2 standard SNMP Agent.","source":"@site/docs/connectors/mib2linux.md","sourceDirName":"connectors","slug":"/connectors/mib2linux","permalink":"/docs/latest/connectors/mib2linux","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"title":"MIB-2 Standard SNMP Agent - Network Interfaces - Linux","description":"This connector discovers the enclosure and the Ethernet ports of a system equipped with an MIB-2 standard SNMP Agent.","keywords":["metricshub","connector","mib2linux","snmp","linux"],"hide_table_of_contents":true,"displayed_sidebar":"docsSidebar","pagination_prev":null,"pagination_next":null},"sidebar":"docsSidebar"}'),s=t(74848),i=t(28453),c=t(6228);let o={title:"MIB-2 Standard SNMP Agent - Network Interfaces - Linux",description:"This connector discovers the enclosure and the Ethernet ports of a system equipped with an MIB-2 standard SNMP Agent.",keywords:["metricshub","connector","mib2linux","snmp","linux"],hide_table_of_contents:!0,displayed_sidebar:"docsSidebar",pagination_prev:null,pagination_next:null},a="MIB-2 Standard SNMP Agent - Network Interfaces - Linux",l={},d=[{value:"Description",id:"description",level:2},{value:"Target",id:"target",level:2},{value:"Prerequisites",id:"prerequisites",level:2},{value:"Examples",id:"examples",level:2},{value:"CLI",id:"cli",level:3},{value:"metricshub.yaml",id:"metricshubyaml",level:3},{value:"Connector Activation Criteria",id:"connector-activation-criteria",level:2},{value:"Metrics",id:"metrics",level:2}];function h(e){let n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"mib-2-standard-snmp-agent---network-interfaces---linux",children:"MIB-2 Standard SNMP Agent - Network Interfaces - Linux"})}),"\n",(0,s.jsx)(n.h2,{id:"description",children:"Description"}),"\n",(0,s.jsx)(n.p,{children:"This connector discovers the enclosure and the Ethernet ports of a system equipped with an MIB-2 standard SNMP Agent."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/docs/latest/connectors/tags/hardware",children:(0,s.jsx)(n.code,{children:"hardware"})})," ",(0,s.jsx)(n.a,{href:"/docs/latest/connectors/tags/linux",children:(0,s.jsx)(n.code,{children:"linux"})})]}),"\n",(0,s.jsxs)(n.admonition,{title:"Superseded Connector",type:"warning",children:[(0,s.jsx)(n.p,{children:"This connector is superseded by:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/latest/connectors/cpqnicilo",children:"CpqNICiLO"})}),"\n"]})]}),"\n",(0,s.jsxs)(n.admonition,{title:"Supersedes",type:"info",children:[(0,s.jsx)(n.p,{children:"This connector supersedes:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/latest/connectors/linuxipnetwork",children:"LinuxIPNetwork"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/latest/connectors/linuxifconfignetwork",children:"LinuxIfConfigNetwork"})}),"\n"]})]}),"\n",(0,s.jsx)(n.h2,{id:"target",children:"Target"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Typical platforms:"})," ",(0,s.jsx)(n.a,{href:"/docs/latest/connectors/platforms/snmp",children:"SNMP"}),", ",(0,s.jsx)(n.a,{href:"/docs/latest/connectors/platforms/linux",children:"Linux"})]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Operating system:"})," Linux"]}),"\n",(0,s.jsx)(n.h2,{id:"prerequisites",children:"Prerequisites"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Leverages:"})," MIB-2 Standard SNMP Agent"]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Technology and protocols:"})," SNMP"]}),"\n",(0,s.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,s.jsx)(n.h3,{id:"cli",children:"CLI"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-batch",children:"metricshub HOSTNAME -t linux -c +MIB2Linux --snmp v2c --community public\n"})}),"\n",(0,s.jsx)(n.h3,{id:"metricshubyaml",children:"metricshub.yaml"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:"resourceGroups:\n <RESOURCE_GROUP>:\n resources:\n <HOSTNAME-ID>:\n attributes:\n host.name: <HOSTNAME> # Change with actual host name\n host.type: linux\n connectors: [ +MIB2Linux ] # Optional, to load only this connector\n protocols:\n snmp:\n version: v2c # Read documentation for v1, v2c and v3\n community: public # or probably something more secure\n"})}),"\n",(0,s.jsx)(n.h2,{id:"connector-activation-criteria",children:"Connector Activation Criteria"}),"\n",(0,s.jsxs)(n.p,{children:["The ",(0,s.jsx)(n.strong,{children:"MIB-2 Standard SNMP Agent - Network Interfaces - Linux"})," connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["An ",(0,s.jsx)(n.strong,{children:"SNMP GetNext"})," on the OID ",(0,s.jsx)(n.code,{children:"1.3.6.1.2.1.2.2.1"})," must return a non-empty value"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"metrics",children:"Metrics"}),"\n",(0,s.jsx)(c.A,{data:[{type:"network",metrics:['hw.errors{hw.type="network"}',"hw.network.bandwidth.limit",'hw.network.dropped{network.io.direction="receive"}','hw.network.dropped{network.io.direction="transmit"}','hw.network.io{direction="receive"}','hw.network.io{direction="transmit"}','hw.network.packets{direction="receive"}','hw.network.packets{direction="transmit"}',"hw.network.up",'hw.status{hw.type="network", state="degraded|failed|ok"}','hw.status{hw.type="network", state="present"}'],attributes:["device_type","hw.parent.type","id","name","physical_address","physical_address_type"]}]})]})}function u(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},6228(e,n,t){t.d(n,{A:()=>i});var r=t(74848),s=t(96540);function i({data:e}){return e&&0!==e.length?(0,r.jsx)("div",{className:"tableWrapper_qs3z",children:(0,r.jsxs)("table",{className:"metricsTable_SMom",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Collected Metrics"}),(0,r.jsx)("th",{children:"Specific Attributes"})]})}),(0,r.jsx)("tbody",{children:e.map((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"typeCell_BkqM",children:(0,r.jsx)("strong",{children:e.type})}),(0,r.jsx)("td",{className:"metricsCell_ll3D",children:e.metrics.length>0?e.metrics.map((n,t)=>(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("code",{children:n}),t<e.metrics.length-1&&(0,r.jsx)("br",{})]},t)):"-"}),(0,r.jsx)("td",{className:"attributesCell_x8LT",children:e.attributes.length>0?e.attributes.map((n,t)=>(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("code",{children:n}),t<e.attributes.length-1&&(0,r.jsx)("br",{})]},t)):"-"})]},n))})]})}):(0,r.jsx)("p",{children:"No specific metrics are collected by this connector."})}},28453(e,n,t){t.d(n,{R:()=>c,x:()=>o});var r=t(96540);let s={},i=r.createContext(s);function c(e){let n=r.useContext(i);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.