(转)Linux服务器SNMP常用OID
原文:https://www.haiyun.me/archives/linux-snmp-oid.html
收集整理一些Linux下snmp常用的OID,用做服务器监控很不错。
服务器负载:
|
1
2
3
|
1 minute Load: .1.3.6.1.4.1.2021.10.1.3.15 minute Load: .1.3.6.1.4.1.2021.10.1.3.215 minute Load: .1.3.6.1.4.1.2021.10.1.3.3 |
CPU信息:
|
1
2
3
4
5
6
7
|
percentage of user CPU time: .1.3.6.1.4.1.2021.11.9.0raw user cpu time: .1.3.6.1.4.1.2021.11.50.0percentages of system CPU time: .1.3.6.1.4.1.2021.11.10.0raw system cpu time: .1.3.6.1.4.1.2021.11.52.0percentages of idle CPU time: .1.3.6.1.4.1.2021.11.11.0raw idle cpu time: .1.3.6.1.4.1.2021.11.53.0raw nice cpu time: .1.3.6.1.4.1.2021.11.51.0 |
内存使用:
|
1
2
3
4
5
6
7
8
|
Total Swap Size: .1.3.6.1.4.1.2021.4.3.0Available Swap Space: .1.3.6.1.4.1.2021.4.4.0Total RAM in machine: .1.3.6.1.4.1.2021.4.5.0Total RAM used: .1.3.6.1.4.1.2021.4.6.0Total RAM Free: .1.3.6.1.4.1.2021.4.11.0Total RAM Shared: .1.3.6.1.4.1.2021.4.13.0Total RAM Buffered: .1.3.6.1.4.1.2021.4.14.0Total Cached Memory: .1.3.6.1.4.1.2021.4.15.0 |
硬盘使用:
|
1
2
3
4
5
6
7
|
Path where the disk is mounted: .1.3.6.1.4.1.2021.9.1.2.1Path of the device for the partition: .1.3.6.1.4.1.2021.9.1.3.1Total size of the disk/partion (kBytes): .1.3.6.1.4.1.2021.9.1.6.1Available space on the disk: .1.3.6.1.4.1.2021.9.1.7.1Used space on the disk: .1.3.6.1.4.1.2021.9.1.8.1Percentage of space used on disk: .1.3.6.1.4.1.2021.9.1.9.1Percentage of inodes used on disk: .1.3.6.1.4.1.2021.9.1.10.1 |
系统运行时间:
|
1
|
.1.3.6.1.2.1.1.3.0 |
SNMP System Group:
|
1
2
3
4
5
6
7
|
sysDescr 1.3.6.1.2.1.1.1sysObjectID 1.3.6.1.2.1.1.2sysUpTime 1.3.6.1.2.1.1.3sysContact 1.3.6.1.2.1.1.4sysName 1.3.6.1.2.1.1.5sysLocation 1.3.6.1.2.1.1.6sysServices 1.3.6.1.2.1.1.7 |
SNMP Interfaces Group:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
ifNumber 1.3.6.1.2.1.2.1ifTable 1.3.6.1.2.1.2.2ifEntry 1.3.6.1.2.1.2.2.1ifIndex 1.3.6.1.2.1.2.2.1.1ifDescr 1.3.6.1.2.1.2.2.1.2ifType 1.3.6.1.2.1.2.2.1.3ifMtu 1.3.6.1.2.1.2.2.1.4ifSpeed 1.3.6.1.2.1.2.2.1.5ifPhysAddress 1.3.6.1.2.1.2.2.1.6ifAdminStatus 1.3.6.1.2.1.2.2.1.7ifOperStatus 1.3.6.1.2.1.2.2.1.8ifLastChange 1.3.6.1.2.1.2.2.1.9ifInOctets 1.3.6.1.2.1.2.2.1.10ifInUcastPkts 1.3.6.1.2.1.2.2.1.11ifInNUcastPkts 1.3.6.1.2.1.2.2.1.12ifInDiscards 1.3.6.1.2.1.2.2.1.13ifInErrors 1.3.6.1.2.1.2.2.1.14ifInUnknownProtos 1.3.6.1.2.1.2.2.1.15ifOutOctets 1.3.6.1.2.1.2.2.1.16ifOutUcastPkts 1.3.6.1.2.1.2.2.1.17ifOutNUcastPkts 1.3.6.1.2.1.2.2.1.18ifOutDiscards 1.3.6.1.2.1.2.2.1.19ifOutErrors 1.3.6.1.2.1.2.2.1.20ifOutQLen 1.3.6.1.2.1.2.2.1.21ifSpecific 1.3.6.1.2.1.2.2.1.22 |
SNMP IP Group
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
ipForwarding 1.3.6.1.2.1.4.1ipDefaultTTL 1.3.6.1.2.1.4.2ipInReceives 1.3.6.1.2.1.4.3ipInHdrErrors 1.3.6.1.2.1.4.4ipInAddrErrors 1.3.6.1.2.1.4.5ipForwDatagrams 1.3.6.1.2.1.4.6ipInUnknownProtos 1.3.6.1.2.1.4.7ipInDiscards 1.3.6.1.2.1.4.8ipInDelivers 1.3.6.1.2.1.4.9ipOutRequests 1.3.6.1.2.1.4.10ipOutDiscards 1.3.6.1.2.1.4.11ipOutNoRoutes 1.3.6.1.2.1.4.12ipReasmTimeout 1.3.6.1.2.1.4.13ipReasmReqds 1.3.6.1.2.1.4.14ipReasmOKs 1.3.6.1.2.1.4.15ipReasmFails 1.3.6.1.2.1.4.16ipFragsOKs 1.3.6.1.2.1.4.17ipFragsFails 1.3.6.1.2.1.4.18ipFragCreates 1.3.6.1.2.1.4.19ipAddrTable 1.3.6.1.2.1.4.20ipAddrEntry 1.3.6.1.2.1.4.20.1ipAdEntAddr 1.3.6.1.2.1.4.20.1.1ipAdEntIfIndex 1.3.6.1.2.1.4.20.1.2ipAdEntNetMask 1.3.6.1.2.1.4.20.1.3ipAdEntBcastAddr 1.3.6.1.2.1.4.20.1.4ipAdEntReasmMaxSize 1.3.6.1.2.1.4.20.1.5 |
SNMP ICMP Group
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
icmpInMsgs 1.3.6.1.2.1.5.1icmpInErrors 1.3.6.1.2.1.5.2icmpInDestUnreachs 1.3.6.1.2.1.5.3icmpInTimeExcds 1.3.6.1.2.1.5.4icmpInParmProbs 1.3.6.1.2.1.5.5icmpInSrcQuenchs 1.3.6.1.2.1.5.6icmpInRedirects 1.3.6.1.2.1.5.7icmpInEchos 1.3.6.1.2.1.5.8icmpInEchoReps 1.3.6.1.2.1.5.9icmpInTimestamps 1.3.6.1.2.1.5.10icmpInTimestampReps 1.3.6.1.2.1.5.11icmpInAddrMasks 1.3.6.1.2.1.5.12icmpInAddrMaskReps 1.3.6.1.2.1.5.13icmpOutMsgs 1.3.6.1.2.1.5.14icmpOutErrors 1.3.6.1.2.1.5.15icmpOutDestUnreachs 1.3.6.1.2.1.5.16icmpOutTimeExcds 1.3.6.1.2.1.5.17icmpOutParmProbs 1.3.6.1.2.1.5.18icmpOutSrcQuenchs 1.3.6.1.2.1.5.19icmpOutRedirects 1.3.6.1.2.1.5.20icmpOutEchos 1.3.6.1.2.1.5.21icmpOutEchoReps 1.3.6.1.2.1.5.22icmpOutTimestamps 1.3.6.1.2.1.5.23icmpOutTimestampReps 1.3.6.1.2.1.5.24icmpOutAddrMasks 1.3.6.1.2.1.5.25icmpOutAddrMaskReps 1.3.6.1.2.1.5.26 |
SNMP TCP Group:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
tcpRtoAlgorithm 1.3.6.1.2.1.6.1tcpRtoMin 1.3.6.1.2.1.6.2tcpRtoMax 1.3.6.1.2.1.6.3tcpMaxConn 1.3.6.1.2.1.6.4tcpActiveOpens 1.3.6.1.2.1.6.5tcpPassiveOpens 1.3.6.1.2.1.6.6tcpAttemptFails 1.3.6.1.2.1.6.7tcpEstabResets 1.3.6.1.2.1.6.8tcpCurrEstab 1.3.6.1.2.1.6.9tcpInSegs 1.3.6.1.2.1.6.10tcpOutSegs 1.3.6.1.2.1.6.11tcpRetransSegs 1.3.6.1.2.1.6.12tcpConnTable 1.3.6.1.2.1.6.13tcpConnEntry 1.3.6.1.2.1.6.13.1tcpConnState 1.3.6.1.2.1.6.13.1.1tcpConnLocalAddress 1.3.6.1.2.1.6.13.1.2tcpConnLocalPort 1.3.6.1.2.1.6.13.1.3tcpConnRemAddress 1.3.6.1.2.1.6.13.1.4tcpConnRemPort 1.3.6.1.2.1.6.13.1.5tcpInErrs 1.3.6.1.2.1.6.14tcpOutRsts 1.3.6.1.2.1.6.15 |
SNMP UDP Group
|
1
2
3
4
5
6
7
8
|
udpInDatagrams 1.3.6.1.2.1.7.1udpNoPorts 1.3.6.1.2.1.7.2udpInErrors 1.3.6.1.2.1.7.3udpOutDatagrams 1.3.6.1.2.1.7.4udpTable 1.3.6.1.2.1.7.5udpEntry 1.3.6.1.2.1.7.5.1udpLocalAddress 1.3.6.1.2.1.7.5.1.1udpLocalPort 1.3.6.1.2.1.7.5.1.2 |
SNMP Group:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
snmpInPkts 1.3.6.1.2.1.11.1snmpOutPkts 1.3.6.1.2.1.11.2snmpInBadVersions 1.3.6.1.2.1.11.3snmpInBadCommunityNames 1.3.6.1.2.1.11.4snmpInBadCommunityUses 1.3.6.1.2.1.11.5snmpInASNParseErrs 1.3.6.1.2.1.11.6NOT USED 1.3.6.1.2.1.11.7snmpInTooBigs 1.3.6.1.2.1.11.8snmpInNoSuchNames 1.3.6.1.2.1.11.9snmpInBadValues 1.3.6.1.2.1.11.10snmpInReadOnlys 1.3.6.1.2.1.11.11snmpInGenErrs 1.3.6.1.2.1.11.12snmpInTotalReqVars 1.3.6.1.2.1.11.13snmpInTotalSetVars 1.3.6.1.2.1.11.14snmpInGetRequests 1.3.6.1.2.1.11.15snmpInGetNexts 1.3.6.1.2.1.11.16snmpInSetRequests 1.3.6.1.2.1.11.17snmpInGetResponses 1.3.6.1.2.1.11.18snmpInTraps 1.3.6.1.2.1.11.19snmpOutTooBigs 1.3.6.1.2.1.11.20snmpOutNoSuchNames 1.3.6.1.2.1.11.21snmpOutBadValues 1.3.6.1.2.1.11.22NOT USED 1.3.6.1.2.1.11.23snmpOutGenErrs 1.3.6.1.2.1.11.24snmpOutGetRequests 1.3.6.1.2.1.11.25snmpOutGetNexts 1.3.6.1.2.1.11.26snmpOutSetRequests 1.3.6.1.2.1.11.27snmpOutGetResponses 1.3.6.1.2.1.11.28snmpOutTraps 1.3.6.1.2.1.11.29snmpEnableAuthenTraps 1.3.6.1.2.1.11.30 |
应用示例:
查看服务器1分钟平均负载:
|
1
2
|
snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4.1.2021.10.1.3.1UCD-SNMP-MIB::laLoad.1 = STRING: 0.25 |
查看服务器当前连接:
|
1
2
3
4
5
6
7
8
9
10
11
|
snmpwalk -v1 -c public 127.0.0.1 1.3.6.1.2.1.6.13.1.1TCP-MIB::tcpConnState.0.0.0.0.22.0.0.0.0.0 = INTEGER: listen(2)TCP-MIB::tcpConnState.0.0.0.0.80.0.0.0.0.0 = INTEGER: listen(2)TCP-MIB::tcpConnState.0.0.0.0.111.0.0.0.0.0 = INTEGER: listen(2)TCP-MIB::tcpConnState.0.0.0.0.443.0.0.0.0.0 = INTEGER: listen(2)TCP-MIB::tcpConnState.0.0.0.0.3306.0.0.0.0.0 = INTEGER: listen(2)TCP-MIB::tcpConnState.127.0.0.1.25.0.0.0.0.0 = INTEGER: listen(2)TCP-MIB::tcpConnState.127.0.0.1.199.0.0.0.0.0 = INTEGER: listen(2)TCP-MIB::tcpConnState.192.168.1.2.22.192.168.1.16.5035 = INTEGER: established(5)TCP-MIB::tcpConnState.192.168.1.2.22.192.168.1.16.10518 = INTEGER: established(5)TCP-MIB::tcpConnState.192.168.1.2.22.192.168.1.16.24713 = INTEGER: established(5) |
(转)Linux服务器SNMP常用OID的更多相关文章
- Linux服务器SNMP常用OID (转)
原文地址:http://www.haiyun.me/archives/linux-snmp-oid.html 收集整理一些Linux下snmp常用的OID,用做服务器监控很不错. 服务器负载: 1 2 ...
- SNMP学习笔记之Linux服务器SNMP常用OID
收集整理一些Linux下snmp常用的OID,用做服务器监控很不错. 应用示例 查看服务器1分钟平均负载: snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4.1. ...
- 自学Zabbix11.3 Zabbix SNMP 常用OID列表
点击返回:自学Zabbix之路点击返回:自学Zabbix4.0之路点击返回:自学zabbix集锦 自学Zabbix11.3 Zabbix SNMP 常用OID列表 点击获取CISCO设备OID 系统参 ...
- linux服务器管理常用命令
1.ps命令 (Processes Status) ps这个命令是查看系统进程,ps 是显示瞬间行程的状态,并不动态连续. ==============ps 的参数说明================ ...
- Linux服务器的常用备份方法
系统备份是系统管理工作中十分重要的一个环切,本文详细介绍了各种Linux系统的备份方法,相信对大家的日常管理工作有所帮助. 备份是一项重要的工作,但是很多人没有去做.一旦由于使用不当造成数据丢失,备份 ...
- 查看linux服务器状态常用命令
最近发现大数据技术的一些部署.高可用.集群等和网站的负载均衡.自动化运维.灾备等其实有很多知识都是重合的,要学好linux运维相关,在大数据的研究上也会有所提高.既然工作需要去系统的去学习linux运 ...
- Zabbix11.3 Zabbix SNMP 常用OID列表
点击获取CISCO设备OID 系统参数(1.3.6.1.2.1.1) OID 描述 备注 请求方式 .1.3.6.1.2.1.1.1.0 获取系统基本信息 SysDesc GET .1.3.6.1.2 ...
- Linux 服务器开发常用命令操作
1)查看网络端口 netstat -na --ip 2)查看特定应用程序进程 ps -ef | grep vsftp or ps aux | grep xxx.exe 3)查看系统日志 vi /et ...
- Snmp常用oid
http://blog.csdn.net/youngqj/article/details/7311849 系统参数(1.3.6.1.2.1.1) OID 描述 备注 请求方式 .1.3.6.1.2 ...
随机推荐
- form action 相对路径出问题
http://www.w3chtml.com/html5/tag/base.html <base> 标签为页面上的所有链接规定默认地址或默认目标. 通常情况下,浏览器会从当前文档的 URL ...
- 设计模式4---原型模式(Prototype Pattern)
原型模式(Prototype):用原型实例指定创建对象的种类,并且通过拷贝这些原型创建新的对象. 原型模式结构图 通俗来说:原型模式就是深拷贝和浅拷贝的实现. 浅拷贝 只实现了值拷贝,对于引用对象还是 ...
- 基于NIOS II的双端口CAN通信回环测试
基于NIOS II的双端口CAN通信回环测试 小梅哥编写,未经授权,严禁用于任何商业用途 说明:本稿件为初稿,如果大家在使用的过程中有什么疑问或者补充,或者需要本文中所述工程源文件,欢迎以邮件形式发送 ...
- CodeForces - 631C ——(思维题)
Each month Blake gets the report containing main economic indicators of the company "Blake Tech ...
- POJ 3660 Cow Contest(传递闭包)
N (1 ≤ N ≤ 100) cows, conveniently numbered 1..N, are participating in a programming contest. As we ...
- bootstrap css排版
smart-form 单行元素: 一般用div包含,class="row" 列元素:用section包含,class="col col-x"(section带有 ...
- Oracle 表关联性 Update 语句的改写,推荐改写方法1
同事写了一个逻辑稍复杂的Update 语句,觉得在代码可读性上有些转圈,交给我帮忙改下. 以下根据原SQL,使用两种方法进行改写,个人推荐方法1的改写.方法2拆分两个SQL来写,代码可读性最强,但是S ...
- tomcat 6.x + log4j日志配置并按天(或大小)生成文件
tomcat日志,默认路径在${catalina.home}/logs目录下,默认使用的是tomcat自己封装的logging工具类,默认配置文件使用的${catalina.home}/conf/ ...
- numpy 数组运算
数组的减法:不同维数
- Codeforces Round #549 (Div. 2)C. Queen
C. Queen time limit per test 1 second memory limit per test 256 megabytes input standard input outpu ...