OIDs für SNMP
(Zurück zum Inhaltsverzeichnis)
Eine OID ist eine spezieller Nummer mit der Werte von diversen Rechnern abgefragt werden können.
Eine Voraussetzung dabei ist, das SNMP eingerichtet ist.
Dies sind derzeit (21.04.2017) alle OIDs, die ich derzeit benutze, offizielle sowie inoffizielle.
Zuerst die offiziellen OIDs:
Debian Jessie
Code
CPU Statistics
Load
.1.3.6.1.4.1.2021.10.1.3.1 = 1 minute Load:
.1.3.6.1.4.1.2021.10.1.3.2 = 5 minute Load:
.1.3.6.1.4.1.2021.10.1.3.3 = 15 minute Load:
CPU
.1.3.6.1.4.1.2021.11.9.0 = percentage of user CPU time:
.1.3.6.1.4.1.2021.11.50.0 = raw user cpu time:
.1.3.6.1.4.1.2021.11.10.0 = percentages of system CPU time:
.1.3.6.1.4.1.2021.11.52.0 = raw system cpu time:
.1.3.6.1.4.1.2021.11.11.0 = percentages of idle CPU time:
.1.3.6.1.4.1.2021.11.53.0 = raw idle cpu time:
.1.3.6.1.4.1.2021.11.51.0 = raw nice cpu time:
Memory Statistics
.1.3.6.1.4.1.2021.4.3.0 = Total Swap Size:
.1.3.6.1.4.1.2021.4.4.0 = Available Swap Space:
.1.3.6.1.4.1.2021.4.5.0 = Total RAM in machine:
.1.3.6.1.4.1.2021.4.6.0 = Total RAM used:
.1.3.6.1.4.1.2021.4.11.0 = Total RAM Free:
.1.3.6.1.4.1.2021.4.13.0 = Total RAM Shared:
.1.3.6.1.4.1.2021.4.14.0 = Total RAM Buffered:
.1.3.6.1.4.1.2021.4.15.0 = Total Cached Memory:
Disk OID's
.1.3.6.1.4.1.2021.9.1.2.1 = Path where the disk is mounted:
.1.3.6.1.4.1.2021.9.1.3.1 = Path of the device for the partition:
.1.3.6.1.4.1.2021.9.1.6.1 = Total size of the disk/partion (kBytes):
.1.3.6.1.4.1.2021.9.1.7.1 = Available space on the disk:
.1.3.6.1.4.1.2021.9.1.8.1 = Used space on the disk:
.1.3.6.1.4.1.2021.9.1.9.1 = Percentage of space used on disk:
.1.3.6.1.4.1.2021.9.1.10.1 = Percentage of inodes used on disk:
Alles anzeigen
Code
For CPU load dd-wrt snmpd provides two sets of MIBs:
1.3.6.1.4.1.2021.10.1.3.1 = 01 min avg, Value is between 0.00 and 1.00
1.3.6.1.4.1.2021.10.1.3.2 = 05 min avg, Value is between 0.00 and 1.00
1.3.6.1.4.1.2021.10.1.3.3 = 15 min avg, Value is between 0.00 and 1.00
1.3.6.1.4.1.2021.10.1.5.1 = 01 min avg, 1 means 0.01 and 150 means 1.5
1.3.6.1.4.1.2021.10.1.5.2 = 05 min avg, 1 means 0.01 and 150 means 1.5
1.3.6.1.4.1.2021.10.1.5.3 = 15 min avg, 1 means 0.01 and 150 means 1.5
For UP and DOWN traffic on the WAN-side:
1.3.6.1.2.1.2.2.1.10.8 = Total Downloaded in Bytes
1.3.6.1.2.1.2.2.1.16.8 = Total Uploaded in Bytes
For memory usage:
1.3.6.1.2.1.25.2.3.1.5.101 = Total available
1.3.6.1.2.1.25.2.3.1.6.101 = Used
Alles anzeigen
Inoffizielle OIDs
Einfach nur null
Temperature (needs a Script on the Client)
USVs (Doppelbelegung wegen gleicher Funktion)
Code
.1.3.6.1.2.1.25.1.20 = PIUSV+ U_Batt
.1.3.6.1.2.1.25.1.21 = PIUSV+ U_Rasp
.1.3.6.1.2.1.25.1.22 = PIUSV+ I_Rasp
.1.3.6.1.2.1.25.1.23 = PIUSV+ U_USB
.1.3.6.1.2.1.25.1.24 = PIUSV+ U_Ext
.1.3.6.1.2.1.25.1.20 = S.USV U_Batt
.1.3.6.1.2.1.25.1.23 = S.USV U_in
.1.3.6.1.2.1.25.1.24 = S.USV PWR_ext
.1.3.6.1.2.1.25.1.25 = S.USV PWR_bat
.1.3.6.1.2.1.25.1.26 = S.USV CAP_bat
NTP (DCF77, GPS)
Code
.1.3.6.1.2.1.25.1.30.1 = GetNTPoffset_1
.1.3.6.1.2.1.25.1.30.2 = GetNTPoffset_2
.1.3.6.1.2.1.25.1.31.1 = gpsGetSatellites visible
.1.3.6.1.2.1.25.1.31.2 = gpsGetSatellites used
.1.3.6.1.2.1.25.1.31.3 = gpsGetSatellites average SNR
Environment (X for more then 1 Sensor)
Code
.1.3.6.1.2.1.25.1.40(.X) = Temperature
.1.3.6.1.2.1.25.1.41(.X) = Humidity
.1.3.6.1.2.1.25.1.42(.X) = Pressure
.1.3.6.1.2.1.25.1.43(.X) = Dew Point
.1.3.6.1.2.1.25.1.44(.X) = Absolute Humidity
.1.3.6.1.2.1.25.1.45(.X) = Luminance
.1.3.6.1.2.1.25.1.46(.X) = IR-Light
.1.3.6.1.2.1.25.1.47(.X) = Human-Light
.1.3.6.1.2.1.25.1.48(.X) = UVa-Light
.1.3.6.1.2.1.25.1.49(.X) = UVa-Index
.1.3.6.1.2.1.25.1.50(.X) = UV-RAW
Alles anzeigen
Ich habe mir diese Regeln gemacht, um nicht die Übersicht zu verlieren, man muss sich nicht daran halten.