SNMP OID for ZPoolHealthType

unixsamurai

Cadet
Joined
Apr 26, 2017
Messages
3
I am running FreeNAS-11.2-U5 and am wanting to poll FreeNAS's SNMP for ZPoolHealthType, using Nagios

The MIB shows:
::= { enterprises 50536 }

ZPoolHealthType ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
""
SYNTAX INTEGER {
online(0),
degraded(1),
faulted(2),
offline(3),
unavail(4),
removed(5)
}

I think I have it narrowed down to one of 3 OIDs
SNMPv2-SMI::enterprises.50536.1.2.1.1.5.2 = INTEGER: 0
.1.3.6.1.4.1.50536.1.2.1.1.5.2

SNMPv2-SMI::enterprises.50536.1.1.1.1.7.1 = INTEGER: 0
.1.3.6.1.4.1.50536.1.1.1.1.7.1

SNMPv2-SMI::enterprises.50536.1.1.1.1.7.2 = INTEGER: 0
.1.3.6.1.4.1.50536.1.1.1.1.7.2

Can anyone tell me, if I am close, or if it's one of those 3?

EDIT: If I wasn't syncing a ton of data to FreeNAS, I'd take the pool offline and query the OIDs again to see which one went to "3" (offline).
 
Last edited:

unixsamurai

Cadet
Joined
Apr 26, 2017
Messages
3
I tested this. I was able to determine that this is the OID for the zpool health.

SNMPv2-SMI::enterprises.50536.1.1.1.1.7.2
.1.3.6.1.4.1.50536.1.1.1.1.7.2

This makes me think that SNMPv2-SMI::enterprises.50536.1.1.1.1.7.1 (or .1.3.6.1.4.1.50536.1.1.1.1.7.1) is likely the boot pool health (untested, but logical).

I wrote up the entire process of investigation, if anyone needs more info: https://www.unixsamurai.com/freenas-snmp-oid-for-zpool-health/

Screenshot of querying snmp via Nagios:
https://i.imgur.com/c5fCPd2.png
 
Last edited:
Top