On 2013-12-30, Julien T <julien....@gmail.com> wrote:
> Hello,
>
> I'm trying to see if I can switch my new openbsd 5.4 box from net-snmp to
> snmpd and for now, I miss only 2 things, disk informations and sensors that
> are not in snmpd.conf man.
>
> For disk monitoring, I didn't find information anywhere. Checking the
> output of snmpwalk, I found the HOST-RESOURCES-MIB::hrStorageSize but the
> format seems different than net-snmp which makes an update needed to my
> cacti graph configuration (or did someone made an update openbsd
> template?). Any translation table?

I don't have net-snmp running anywhere convenient to check how it looks at
the moment, but to get a value in bytes, hrStorageSize needs to be multiplied
by the associated entry from hrStorageAllocationUnits.

> For sensors, I saw the MIB /usr/share/snmp/mibs/OPENBSD-SENSORS-MIB.txt but
> a snmpwalk of my host gives nothing

Sensors works very nicely over snmp, but you are missing that by
default snmpwalk doesn't walk over vendor mibs.

    "If no OID argument is present, snmpwalk will search the subtree rooted
    at SNMPv2-SMI::mib-2 (including any MIB object values from other MIB
    modules, that are defined as lying within this subtree)"

$ snmpwalk -c $bleh sym OPENBSD-BASE-MIB::sensorsMIBObjects 
OPENBSD-SENSORS-MIB::sensorNumber.0 = INTEGER: 3
OPENBSD-SENSORS-MIB::sensorIndex.1 = INTEGER: 1
OPENBSD-SENSORS-MIB::sensorIndex.2 = INTEGER: 2
OPENBSD-SENSORS-MIB::sensorIndex.3 = INTEGER: 3
OPENBSD-SENSORS-MIB::sensorDescr.1 = STRING: "temp0"
OPENBSD-SENSORS-MIB::sensorDescr.2 = STRING: "inner"
OPENBSD-SENSORS-MIB::sensorDescr.3 = STRING: "sd3"
OPENBSD-SENSORS-MIB::sensorType.1 = INTEGER: temperature(0)
OPENBSD-SENSORS-MIB::sensorType.2 = INTEGER: temperature(0)
OPENBSD-SENSORS-MIB::sensorType.3 = INTEGER: drive(13)
OPENBSD-SENSORS-MIB::sensorDevice.1 = STRING: "km0"
OPENBSD-SENSORS-MIB::sensorDevice.2 = STRING: "ugold0"
OPENBSD-SENSORS-MIB::sensorDevice.3 = STRING: "softraid0"
OPENBSD-SENSORS-MIB::sensorValue.1 = STRING: "42.00"
OPENBSD-SENSORS-MIB::sensorValue.2 = STRING: "21.87"
OPENBSD-SENSORS-MIB::sensorValue.3 = STRING: "online"
OPENBSD-SENSORS-MIB::sensorUnits.1 = STRING: "degC"
OPENBSD-SENSORS-MIB::sensorUnits.2 = STRING: "degC"
OPENBSD-SENSORS-MIB::sensorUnits.3 = ""
OPENBSD-SENSORS-MIB::sensorStatus.1 = INTEGER: unspecified(0)
OPENBSD-SENSORS-MIB::sensorStatus.2 = INTEGER: unspecified(0)
OPENBSD-SENSORS-MIB::sensorStatus.3 = INTEGER: ok(1)

Reply via email to