Under previous Raspbian I could get the percent CPU with SNMP using the OID:
.1.3.6.1.2.1.25.3.3.1.2.768
which gave an integer percent CPU usage, but this doesn't work with Jessie. Does anyone know what the equivalent is for percentage CPU? I have searched without success, only finding a string variable, not an integer.
.1.3.6.1.4.1.2021.10.1.3.2
Thanks!
Cheers,
David
Web: http://www.satsignal.eu
Didn't find your answer? Ask the community — no account required.
T
The Natural Philosopher
try snmpwalk -oN etc.. etc...
To dump the entire snmp database.
"The great thing about Glasgow is that if there's a nuclear attack it'll
look exactly the same afterwards."
Billy Connolly
D
David Taylor
Thanks for the suggestion, but that's beaten me! I can only see what look like network or process data, no loading at all. Perhaps I have the wrong snmpwalk command, or perhaps I don't have the MIBs loaded, or?
Can anyone help further, please?
Cheers,
David
Web: http://www.satsignal.eu
T
The Natural Philosopher
Snmpwalk will walk the entire contents of the database, in numeric form, and (possibly) convert that to strings.
If the CPU data is not in the database, that is probably a sign that some shim that gets it from somewhere and puts it IN the database, is not loaded or not functioning. That's controlled by snmpd.conf
First of all are you getting FULL dumps - many many pages.
If not edit /etc/snmp/snmpd.conf
# Default access to EVERYTHING rocommunity public localhost
# Default access to basic system info #rocommunity public default -V systemonly
-------------------- as root (or sudo) #apt-get install snmp-mibs-downloader #download-mibs
and to get snmpwalk to use em comment out the line mibs: in /etc/snmp/snmp.conf to #mibs:
Now you should have human readable crap spewing out of snmpwalk in quantity