This is based on the FreeNAS SNMP w/ ZFS stats template.It has more graphs and triggers. It uses the OID as zabbix was having issues parsing the MIB.Please Note: For ZVols, ZPools and Datasets the data is multiplied by 4096 under PreProcessing. This is the AllocationUnits. All of mine were 4096 so decided this is neater. Obviously this can be changed if required, you can get this data from an SNMP Walk. This could be done automatically by creating a item prototype of allocationUnits, another to get the data in units and then another item prototype to to calculate the value in bytes. Instead of 14 item prototypes; there would be 42. If anyone knows of a better way then please let me know.Eg: snmpwalk -v 2c -c public 192.168.1.50 FREENAS-MIB::zvolAllocationUnitssnmpwalk -v 2c -c public 192.168.1.50 FREENAS-MIB::zpoolAllocationUnitssnmpwalk -v 2c -c public 192.168.1.50 FREENAS-MIB::datasetAllocationUnitsNote: You might get erros if you don´t fix the MIB. See bug here:https://forums.freenas.org/index.php?threads/freenas-11-1-snmp-index-out-of-range.62732/Import the following templates if they are not already: SNMP Interfaces Discovery, SNMP Processors Discovery, SNMP GenericThe FREENAS-MIB.txt will also need to be uploaded to your Zabbix Server. The MIB can be downloaded from your FreeNAS server and is located in /usr/local/share/snmp/mibs/.Import the templateAdd the host, include the macro {$SNMP_COMMUNITY}WaitMemory should be pretty quick while the zpools might take a while.
This template will allow you to easily monitor and graph a TrueNAS/FreeNAS server including ZFS ARC stats. This requires TrueNAS/FreeNAS 9.3 or above.You will also need to create a Zabbix macro named {$SNMP_COMMUNITY} which contains your SNMP community name. The FREENAS-MIB.txt will also need to be uploaded to your Zabbix Server. The MIB can be downloaded from your FreeNAS server and is located in /usr/local/share/snmp/mibs/.