Convincing TrueNAS to be compliant with Zabbix monitoring is apparently quite a process. It should be easy — both ends speak SNMP — but that doesn’t seem to mean it actually is.
Not yet working
I haven’t gotten this to work yet, and this page is an in-progress snapshot of my effort.
- Initial attempt
- SNMP enabled on TrueNAS
- SNMPv3 enabled
- Community set
- Username set
- Authentication ⇒ SHA
- Password set
- Privacy protocol ⇒ AES
- Privacy passphrase set
- SNMP configured on Zabbix
- IP & hostname set, port 161, lookup via IP
- SNMP version ⇒ SNMPv3
- Context name set
- Security name set
- Security level ⇒ authPriv
- Authentication protocol ⇒ SHA256 (note)
- Authentication passphrase set
- Privacy protocol ⇒ AES256
- Privacy passphrase set
- Error:
cannot retrieve OID: '.1.3.6.1.2.1.1.2.0' from [[192.168.30.146]:161]: timed out- different OID for differnet hosts (this example from
falsenas; currently off-network at time of writing. OID fordevnullwas.1.3.6.1.4.1.2021.4.4.0.)
- different OID for differnet hosts (this example from
- SNMP enabled on TrueNAS
- Second attempt
- SNMP enabled on TrueNAS, same configuration as try 1
- SNMP configured on Zabbix, differences from try 1:
- Template changed from
Linux by SNMPtoTrueNAS CORE by SNMP - Authentication protocol ⇒ SHA1
- Template changed from
- Error: literally nothing, the status box is just greyed out
(note): I think this is wrong and should be SHA1.
- https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/507574-snmp-error-cannot-retrieve-oid-time-out
- Installed
snmpget(Gentoo:emerge -a net-analyzer/net-snmp) snmpget -v 3 -u <user> -l authPriv -a SHA -A <authpw> -x AES -X <privpw> <ip> .1.3.6.1.4.1.2021.4.4.0works, returnsUCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 0 kB- Playing with
-aand-xoptions indicate-a SHAand-a SHA1work, no others.-x AESseems to be only option recognized bysnmpget.
- Installed