Brezlord
Contributor
- Joined
- Jan 7, 2017
- Messages
- 189
Hi all, a forum user asked me for some info on how I setup Zabbix to monitor TrueNAS 12 and I thought that it was best to start a new post as this would not be related to the original post that was about an SNMP bug. Mods feel free to move this post if it's not in the right location.
The easiest way to get Zabbix up and running is to download the Appliance here and for the installation instructions read the manual for Zabbix 5 appliance here.
Chose your method of install, i used the ISO and installed Zabbix in a VM hosted on XCP-ng (Xen Server). Once installed and initial setup is complete import the attached template. The template is linked to some generic templates that off memory are included in the default Zabbix install, if not let me know and I'll attache them to this post.
Once you have imported the template create a new host and add templates 'Template SNMP TrueNAS 12' & 'Template Module ICMP Ping' to the host set the IP address of the TrueNAS server and save the host config. Wait a few minutes for Zabbix to connect to TrueNAS and discover everything, SNMP will be green when Zabbix is connected to TrueNAS. To speed up things click on Discovery Rules and select all of them and then click on Execute Now.
You can remove the section that is for Zabbix Agent as you will only be using SNMP, see below.
You can test that Zabbix can read the OIDs from TrueNAS by using snmpwalk command from the Zabbix VM shell.
To check TrueNAS ARC allocation.
You can see that there is 114.8GB of RAM allocated to ARC
To find the Zabbix Server version run the following from the shell.
If you need to edit any of Zabbix server settings they are located in /etc/zabbix/zabbix_server.conf you can leave everything default for a home lab install.
If you need anything else just ask
The easiest way to get Zabbix up and running is to download the Appliance here and for the installation instructions read the manual for Zabbix 5 appliance here.
Chose your method of install, i used the ISO and installed Zabbix in a VM hosted on XCP-ng (Xen Server). Once installed and initial setup is complete import the attached template. The template is linked to some generic templates that off memory are included in the default Zabbix install, if not let me know and I'll attache them to this post.
Once you have imported the template create a new host and add templates 'Template SNMP TrueNAS 12' & 'Template Module ICMP Ping' to the host set the IP address of the TrueNAS server and save the host config. Wait a few minutes for Zabbix to connect to TrueNAS and discover everything, SNMP will be green when Zabbix is connected to TrueNAS. To speed up things click on Discovery Rules and select all of them and then click on Execute Now.
You can remove the section that is for Zabbix Agent as you will only be using SNMP, see below.
You can test that Zabbix can read the OIDs from TrueNAS by using snmpwalk command from the Zabbix VM shell.
To check TrueNAS ARC allocation.
Code:
[root@zabbix ~]# snmpwalk -v 2c -c public 192.168.40.40 .1.3.6.1.4.1.50536.1.4.1.0 SNMPv2-SMI::enterprises.50536.1.4.1.0 = Gauge32: 114888105
You can see that there is 114.8GB of RAM allocated to ARC
To find the Zabbix Server version run the following from the shell.
zabbix_server --version
If you need to edit any of Zabbix server settings they are located in /etc/zabbix/zabbix_server.conf you can leave everything default for a home lab install.
If you need anything else just ask