Hello, everyone, I’m lucky enough to have on my Homelab a QNAP NAS, I wrote in Spanish some articles about how you can integrate QNAP with VMware:
- Configuración de Red e iSCSI para entornos VMware vSphere 6.0
- Configuración de Red y Servicios NFS para entornos VMware vSphere 6.0
At the same time, it’s really important to have a good RAID configuration or a proper Network Infrastructure, we don’t need to forget how to monitor properly the QNAP status, which means all disks, temperature, S.M.A.R.T, etc. and we can achieve this in a quicker way using PRTG.
At the end of this Blog post, you might be able to have a PRTG Map like this one, which I’ve built in ten minutes:
How to configure SNMP on a QNAP NAS
First thing before continue is to think if we want to use SNMP v1/v2 or choose SNMP v3, in this particular case, I’ve chosen SNMP v1/v2 to reduce complexity.
Once logged in on the QNAP, you can go to ControlPanel – Network & File Services and click on the SNMP section
Now, on this section you can select the TCP Port for SNMP service to listen, also configure the SNMP traps in case you want to, select the SNMP version and the SNMP Community, which in my case I’ve left the default public one. All of this fields are subjective to change to fit your environment.
How to create and configure a new QNAP device on PRTG
Once we’ve finished the QNAP configuration, we can now log-in in our PRTG. Then click on the button called Add Device to add your QNAP:
What to monitor from a QNAP NAS?
One of my favorite thing of QNAP, is their Monitoring System on the Control Panel. Once you log-in inside a QNAP, you can find on the right a monitor icon, once opened you can see all the next information:
- Disk S.M.A.R.T – This is absolutely critical, in the case that a disk is close to fail, it usually starts by sending errors on the S.M.A.R.T, and then after a few time later the disk is unusable and starts to corrupt the data.
- Disks temperature – This is another really important aspect from a monitoring point of view. Disks usually work better at a temperature between 37 up to 46 Celsius, here is a Google study about it. If we expose our disks, especially mechanical, to a temperature different than that we have more chances to make them fail sooner.
- Used space on the volumes – This is a must-have aspect we want to monitor on a NAS
- CPU and RAM usage – This is not critical until we have VMs in production on this QNAP system, as if the CPU and RAM reach the limits, all the services in the NAS will start to work really slow, which will make that VMs not running properly and have a bad performance, etc.
- Network usage – This is not really critical, but always good to know if some of the Network ports are having an unusual usage, especially for those using iSCSI or NFS with VMware.
I’ll start with the one called QNAP System Health, which will show us a really useful information about our QNAP, the sensor will prompt us for some basic information like name and if we want to show Celsius or Fahrenheit.
Extra: Monitoring beyond the QNAP sensors
If we want to go beyond the pre-configured QNAP sensors, PRTG offers us another ton of Linux-based sensors, as QNAP is based on a Linux OS, we can leverage that into extending our QNAP monitoring even further, what a blast!
Let’s start to monitor the Ethernet usage using SNMP, so we can monitor our QNAP Ethernet ports, search for SNMP and select the SNMP Traffic sensor:
That’s all folks, we can now create the PRTG Map I showed you at the beginning of the post, in just a few minutes we can do something similar, or even better. Don’t forget PRTG has a free version as well.