Linux下常用SNMP OID

1.服务器负载: 1 minute Load: . 5 minute Load: . 15 minute Load: . 2.CPU信息: percentage of user CPU time: . raw user cpu time: . percentages of system CPU time: . raw system cpu time: . percentages of idle CPU time: . raw idle cpu time: . raw nice cpu time: .   3。内存使用: Total Swap Size: . Available Swap Space: . Total RAM in machine: . Total RAM used: . Total RAM Free: . Total RAM Shared: . Total RAM Buffered: . Total Cached Memory: . 4.硬盘使用: Path where the disk is mounted: . Path of the device for the partition: . Total size of the disk/partion (kBytes): . Available space on the disk: . Used space on the disk: . Percentage of space used on disk: . Percentage of inodes used on disk: . 5.系统运行时间: . 6.SNMP System Group: sysDescr sysObjectID sysUpTime sysContact sysName sysLocation sysServices SNMP Interfaces Group: ifNumber ifTable ifEntry ifIndex ifDescr ifType ifMtu ifSpeed ifPhysAddress ifAdminStatus ifOperStatus ifLastChange ifInOctets ifInUcastPkts ifInNUcastPkts ifInDiscards ifInErrors ifInUnknownProtos ifOutOctets ifOutUcastPkts ifOutNUcastPkts ifOutDiscards ifOutErrors ifOutQLen ifSpecific SNMP IP Group ipForwarding ipDefaultTTL ipInReceives ipInHdrErrors ipInAddrErrors ipForwDatagrams ipInUnknownProtos ipInDiscards ipInDelivers ipOutRequests ipOutDiscards ipOutNoRoutes ipReasmTimeout ipReasmReqds ipReasmOKs ipReasmFails ipFragsOKs ipFragsFails ipFragCreates ipAddrTable ipAddrEntry ipAdEntAddr ipAdEntIfIndex ipAdEntNetMask ipAdEntBcastAddr ipAdEntReasmMaxSize SNMP ICMP Group icmpInMsgs icmpInErrors icmpInDestUnreachs icmpInTimeExcds icmpInParmProbs icmpInSrcQuenchs icmpInRedirects icmpInEchos icmpInEchoReps icmpInTimestamps icmpInTimestampReps icmpInAddrMasks icmpInAddrMaskReps icmpOutMsgs icmpOutErrors icmpOutDestUnreachs icmpOutTimeExcds icmpOutParmProbs icmpOutSrcQuenchs icmpOutRedirects icmpOutEchos icmpOutEchoReps icmpOutTimestamps icmpOutTimestampReps icmpOutAddrMasks icmpOutAddrMaskReps SNMP TCP Group: tcpRtoAlgorithm tcpRtoMin tcpRtoMax tcpMaxConn tcpActiveOpens tcpPassiveOpens tcpAttemptFails tcpEstabResets tcpCurrEstab tcpInSegs tcpOutSegs tcpRetransSegs tcpConnTable tcpConnEntry tcpConnState tcpConnLocalAddress tcpConnLocalPort tcpConnRemAddress tcpConnRemPort tcpInErrs tcpOutRsts SNMP UDP Group udpInDatagrams udpNoPorts udpInErrors udpOutDatagrams udpTable udpEntry udpLocalAddress udpLocalPort SNMP Group: snmpInPkts snmpOutPkts snmpInBadVersions snmpInBadCommunityNames snmpInBadCommunityUses snmpInASNParseErrs NOT USED snmpInTooBigs snmpInNoSuchNames snmpInBadValues snmpInReadOnlys snmpInGenErrs snmpInTotalReqVars snmpInTotalSetVars snmpInGetRequests snmpInGetNexts snmpInSetRequests snmpInGetResponses snmpInTraps snmpOutTooBigs snmpOutNoSuchNames snmpOutBadValues NOT USED snmpOutGenErrs snmpOutGetRequests snmpOutGetNexts snmpOutSetRequests snmpOutGetResponses snmpOutTraps snmpEnableAuthenTraps 应用示例: 查看服务器1分钟平均负载: snmpwalk -v1 -c public  . UCD-SNMP-MIB::laLoad.1 = STRING: 0.25 查看服务器当前连接: snmpwalk -v1 -c public TCP-MIB::tcpConnState. = INTEGER: listen(2) TCP-MIB::tcpConnState. = INTEGER: listen(2) TCP-MIB::tcpConnState. = INTEGER: listen(2) TCP-MIB::tcpConnState. = INTEGER: listen(2) TCP-MIB::tcpConnState. = INTEGER: listen(2) TCP-MIB::tcpConnState. = INTEGER: listen(2) TCP-MIB::tcpConnState. = INTEGER: listen(2) TCP-MIB::tcpConnState. = INTEGER: established(5) TCP-MIB::tcpConnState. = INTEGER: established(5) TCP-MIB::tcpConnState. = INTEGER: established(5) ---------------------

0 个评论