On 2016-02-26, Alex Naumov <[email protected]> wrote:
> Hello,
>
> just want to ask why our snmpd(8) doesn't understand MIBs from UCD-SNMP-MIB.
> Is there some workaround?
>
> I need information about CPU and Memory usage...
>
>
> OpenBSD 5.6 GENERIC#274 i386
> net-snmp-5.7.2.1p2

snmpd(8) aka /usr/sbin/snmpd is *not* Net-SNMP. It generally prefers
standard MIBs where possible, the UCD/NetSNMP ones are generally
not used (except that UCD-DISKIO-MIB *is* used, I don't think there
was a good alternative standard MIB for this).

For Memory/CPU use, look in the Host Resources MIB (RFC 2790):
HOST-RESOURCES-MIB::hrStorageTable
HOST-RESOURCES-MIB::hrProcessorTable

Examples:

snmptable -v2c -c public localhost hrStorageTable
snmptable -v2c -c public localhost hrProcessorTable
snmpget -v2c -c public localhost 
hrStorage{Descr,AllocationUnits,Size,Used}.{1,2}
snmpwalk -v2c -c public localhost hrProcessorLoad

LibreNMS, for one, can pick these up directly.

(There is also /usr/local/sbin/snmpd / /etc/rc.d/netsnmpd -
this is still needed in some special situations, but snmpd(8)
is more trustworthy).

Reply via email to