Hi,
EDIT: Here is the Zabbix template I created. https://share.zabbix.com/storage-devices/freenas-11
Firstly here are my system specifications.
Version: FreeNAS-11.1-U2
CPUI: Intel(R) Xeon(R) CPU E3-1220L V2 @ 2.30GHz
RAM: 16311MB (ECC)
HP Microserver Gen8
2 x 4TB Western Digital NAS Red Drives
So I am trying to setup SNMP monitoring via Zabbix, I did discover a template here: https://share.zabbix.com/storage-devices/freenas-snmp-w-zfs-stats however this will need updating to work with FreeNAS 11.1 which I am happy to do.
I downloaded the MIB FreeNAS-MIB.txt from /usr/local/share/snmp/mibs/FREENAS-MIB.txt to my linux desktop with snmpwalk on it.
I can see in the MIB file the zpool entries:
Running:
I get:
So I should be able to append either .0 or .1 to get the zpool I want? Unfortunately I get index out of range which doesn't seem correct to me.
I think there might be a bug in the MIB? I changed the integer32 be 0..2147483647 and it worked.
zpoolIndex OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
""
::= { zpoolEntry 1 }
I seemed to fix it while writing this forum post. I will raise a bug and post the bug number here.
EDIT: Here is the Zabbix template I created. https://share.zabbix.com/storage-devices/freenas-11
Firstly here are my system specifications.
Version: FreeNAS-11.1-U2
CPUI: Intel(R) Xeon(R) CPU E3-1220L V2 @ 2.30GHz
RAM: 16311MB (ECC)
HP Microserver Gen8
2 x 4TB Western Digital NAS Red Drives
So I am trying to setup SNMP monitoring via Zabbix, I did discover a template here: https://share.zabbix.com/storage-devices/freenas-snmp-w-zfs-stats however this will need updating to work with FreeNAS 11.1 which I am happy to do.
I downloaded the MIB FreeNAS-MIB.txt from /usr/local/share/snmp/mibs/FREENAS-MIB.txt to my linux desktop with snmpwalk on it.
I can see in the MIB file the zpool entries:
Code:
ZpoolEntry ::= SEQUENCE {
zpoolIndex Integer32,
zpoolDescr DisplayString,
zpoolAllocationUnits Integer32,
zpoolSize Integer32,
zpoolUsed Integer32,
zpoolAvailable Integer32,
zpoolHealth ZPoolHealthType,
zpoolReadOps Counter64,
zpoolWriteOps Counter64,
zpoolReadBytes Counter64,
zpoolWriteBytes Counter64,
zpoolReadOps1sec Counter64,
zpoolWriteOps1sec Counter64,
zpoolReadBytes1sec Counter64,
zpoolWriteBytes1sec Counter64
}Running:
snmpwalk -v 2c -c MyCommunity 172.16.80.80 FREENAS-MIB::zpoolDescrI get:
Code:
FREENAS-MIB::zpoolDescr.0 = STRING: OneDrive FREENAS-MIB::zpoolDescr.1 = STRING: freenas-boot
So I should be able to append either .0 or .1 to get the zpool I want? Unfortunately I get index out of range which doesn't seem correct to me.
[root@centos ~]# snmpwalk -v 2c -c MyCommunity 172.16.80.80 FREENAS-MIB::zpoolDescr.0Code:
FREENAS-MIB::zpoolDescr.0: Unknown Object Identifier (Index out of range: 0 (zpoolIndex))
[root@centos ~]# snmpwalk -v 2c -c MyCommunity 172.16.80.80 FREENAS-MIB::zpoolDescr.1Code:
FREENAS-MIB::zpoolDescr.1 = STRING: freenas-boot
I think there might be a bug in the MIB? I changed the integer32 be 0..2147483647 and it worked.
zpoolIndex OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
""
::= { zpoolEntry 1 }
I seemed to fix it while writing this forum post. I will raise a bug and post the bug number here.
Last edited: