Object Identifiers (OIDs) uniquely identify managed objects in a MIB (stands for Management Information Base) hierarchy. These are accessed using a SNMP protocol.
Below is a list of most useful Linux OID's that people may be looking for. I split them in several categories:
CPU
Percentages of user CPU time (ssCpuUser)
.1.3.6.1.4.1.2021.11.9
.1.3.6.1.4.1.2021.11.10
.1.3.6.1.4.1.2021.11.11
Load
1 minute Load (laLoad.1)
.1.3.6.1.4.1.2021.10.1.3.1
.1.3.6.1.4.1.2021.10.1.3.2
.1.3.6.1.4.1.2021.10.1.3.3
Memory
Total Swap Size configured for the host (memTotalSwap)
.1.3.6.1.4.1.2021.4.3
.1.3.6.1.4.1.2021.4.4
.1.3.6.1.4.1.2021.4.5
.1.3.6.1.4.1.2021.4.6
.1.3.6.1.4.1.2021.4.11.0
.1.3.6.1.4.1.2021.4.13.0
.1.3.6.1.4.1.2021.4.14.0
.1.3.6.1.4.1.2021.4.15.0
Disks
Disks names (ns-disk-1-name)
.1.3.6.1.4.1.2021.9.1.2
.1.3.6.1.4.1.2021.9.1.7
.1.3.6.1.4.1.2021.9.1.8
.1.3.6.1.4.1.2021.9.1.9
Note:
The snmpd.conf needs to be edited. Add the following (assuming a machine with a "/" and "/boot" partitions):
disk /
disk /boot
Interfaces
Interfaces Input Octets (ifInOctets)
.1.3.6.1.2.1.2.2.1.10
.1.3.6.1.2.1.2.2.1.14
.1.3.6.1.2.1.2.2.1.16
.1.3.6.1.2.1.2.2.1.20
Use snmpwalk command to get the value of specific item for monitoring. For example, if I want to see via SNMP free memory in bytes, I will issue the command:
snmpwalk -v 2c -c utm1 81.180.74.70 .1.3.6.1.4.1.2021.4.6
Explanation:
-v - version of SNMP (2c)
-c - community name (utm1)
81.180.74.70 - the ip of server
.1.3.6.1.4.1.2021.4.6 - this is OID