• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
The Blog of Jorge de la Cruz

The Blog of Jorge de la Cruz

Everything about VMware, Veeam, InfluxData, Grafana, Zimbra, etc.

  • Home
  • VMWARE
  • VEEAM
    • Veeam Content Recap 2021
    • Veeam v11a
      • Veeam Backup and Replication v11a
    • Veeam Backup for AWS
      • Veeam Backup for AWS v4
    • Veeam Backup for Azure
      • Veeam Backup for Azure v3
    • VeeamON 2021
      • Veeam Announces Support for Red Hat Enterprise Virtualization (RHEV/KVM)
      • Veeam announces enhancements for new versions of Veeam Backup for AWS v4/Azure v3/GVP v2
      • VBO v6 – Self-Service Portal and Native Integration with Azure Archive and AWS S3 Glacier
  • Grafana
    • Part I (Installing InfluxDB, Telegraf and Grafana on Ubuntu 20.04 LTS)
    • Part VIII (Monitoring Veeam using Veeam Enterprise Manager)
    • Part XII (Native Telegraf Plugin for vSphere)
    • Part XIII – Veeam Backup for Microsoft Office 365 v4
    • Part XIV – Veeam Availability Console
    • Part XV – IPMI Monitoring of our ESXi Hosts
    • Part XVI – Performance and Advanced Security of Veeam Backup for Microsoft Office 365
    • Part XVII – Showing Dashboards on Two Monitors Using Raspberry Pi 4
    • Part XIX (Monitoring Veeam with Enterprise Manager) Shell Script
    • Part XXII (Monitoring Cloudflare, include beautiful Maps)
    • Part XXIII (Monitoring WordPress with Jetpack RESTful API)
    • Part XXIV (Monitoring Veeam Backup for Microsoft Azure)
    • Part XXV (Monitoring Power Consumption)
    • Part XXVI (Monitoring Veeam Backup for Nutanix)
    • Part XXVII (Monitoring ReFS and XFS (block-cloning and reflink)
    • Part XXVIII (Monitoring HPE StoreOnce)
    • Part XXIX (Monitoring Pi-hole)
    • Part XXXI (Monitoring Unifi Protect)
    • Part XXXII (Monitoring Veeam ONE – experimental)
    • Part XXXIII (Monitoring NetApp ONTAP)
    • Part XXXIV (Monitoring Runecast)
  • Nutanix
  • ZIMBRA
  • PRTG
  • LINUX
  • MICROSOFT

Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XLIII (Monitoring QNAP using SNMP v3)

6th March 2023 - Written in: opensource

Greetings friends, what an exciting entry I bring you today. For years I have been receiving the request to do a SNMP Grafana dashboard. Honestly I always found SNMP quite complex for what it should be, I understand there are MIBs, and it is an standard, but it is just too complex to build upon it. Luckily telegraf comes to the rescue and the config is quite easy.

Some more SNMP dashboard might come, for example one for ESXis, but for now I wanted to start with a critical component of my homelab which is my NAS, where my backups reside, etc.

Grafana Dashboard for QNAP Devices, using SNMP v3

When you finish the entry you will have something similar to this. It might be different according to your device, like more drives, less drives, more fans, etc. You can quickly filter by time on the top right, and sampling to obtain more or less granularity on the charts.

Dashboard – Summary

  • QNAP Overview – On the top bar we can find a quick overview of our QNAP, number of devices, model, RAM, CPU Cores, Ethernets, etc.
  • Fan Speed – The speed at which our FANs are working.
  • System Temperature – This will show you the different main temperatures, like CPU, and system.
  • Disk Temperatures – Another great one, it will show you all your disks speeds. Usually the firstt two drives are used for NVMe cache on all models. Adjust it if not.
  • CPU/RAM/Network Usage – Time-series metrics with the consumption of the different resources by time.
  • Disk IOPS/Volume Usage – Two visualizations about disks and volumes, the first one on the left, aiming at the IOPS consumed, on the right showing us the consumption of disk in %.

Topology with all logical components

This entry is very similar to the previous ones, we will use telegraf to collect the SNMP information from our QNAPs, from there we will send them to InfluxDB, and visualize them with Grafana . The design would be something similar to this:

QNAP, and Telegraf SNMPv3 Configuration

For the very first time on the series, I am using SNMP. I must admit it is not my cup of tea, but it is true that sometimes it is the easiest way to take data out, not that easy to put together into a monitoring tool. There are a few steps we need to perform on our QNAP. I used the great work from https://gitlab.com/artkrz/telegraf-qnap as inspiration for some steps.

SNMP v3 configuration, and MIB Download

We are going to use SNMP, but not v1/v2, random without user/pass. We are going to to do it right, and secure. So we enable SNMP, version 3, and we configure authentication, and privacy. Next please download the QNAP MIB as well:

With these little steps, we are all set at the QNAP level.

Telegraf additional steps, and configuration

SNMP is a bit particular, so first of let’s install the next package on your telegraf server (use yum if RHEL based):

sudo apt-get install snmp-mibs-downloader

And now, make sure you put the NAS.mib on the correct path:

/usr/share/snmp/mibs/

Under your vi /etc/snmp/snmp.conf make sure you have the next enabled

nano /etc/snmp/snmp.conf

# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loading them by commenting out the following line.
mibs +ALL

# If you want to globally change where snmp libraries, commands and daemons
# look for MIBS, change the line below. Note you can set this for individual
# tools with the -M option or MIBDIRS environment variable.
#
# mibdirs /usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf

Alright, we are finally ready to rock & roll, let’s create the specific QNAP configuration under /etc/telegraf/telegraf.d/qnap.conf with the next content. Please replace your QNAPIP,  the username used on the SNMPv3 on QNAP, and the passwords used for auth and privacy:

[[inputs.snmp]]
   # List of agents to poll
   agents = [ "YOURQNAPIP" ]
   # Polling interval
   interval = "30s"
   # Timeout for each SNMP query.
   timeout = "30s"
   # Number of retries to attempt within timeout.
   retries = 3
   # The GETBULK max-repetitions parameter
   max_repetitions = 10
   # Measurement name
   name = "snmp.QNAP"
   #SNMPv3
   version = 3
   sec_name = "YOURUSERNAME"
   auth_protocol = "SHA"
   auth_password = "YOURPASS"
   sec_level = "authPriv"
   priv_protocol = "DES"
   priv_password = "YOUROTHERPASS"


  ##
  ## System Details & Metrics
  ##
  # CPU
  [[inputs.snmp.field]]
  name = "name"
  oid = "NAS-MIB::enclosureName.1"
  is_tag = true

  [[inputs.snmp.table]]
    name = "snmp.QNAP.cpuTable"
    oid = "NAS-MIB::cpuTable"
    [[inputs.snmp.table.field]]
      name = "cpuIndex"
      oid = "NAS-MIB::cpuIndex"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "cpuID"
      oid = "NAS-MIB::cpuID"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "cpuUsage"
      oid = "NAS-MIB::cpuUsage"

  #  System
  #  Enclosures
  [[inputs.snmp.table]]
    name = "snmp.QNAP.systemTable"
  # Memory
  [[inputs.snmp.table.field]]
    name = "systemTotalMemEX"
    oid = "NAS-MIB::systemTotalMemEX"
  [[inputs.snmp.table.field]]
    name = "systemFreeMemEX"
    oid = "NAS-MIB::systemFreeMemEX"
  # System temp
  [[inputs.snmp.table.field]]
    name = "cpu-TemperatureEX"
    oid = "NAS-MIB::cpu-TemperatureEX"
  [[inputs.snmp.table.field]]
    name = "systemTemperatureEX"
    oid = "NAS-MIB::systemTemperatureEX"
  # Uptime
  [[inputs.snmp.table.field]]
    name = "systemUptime"
    oid = "NAS-MIB::systemUptimeEX"
  # Uptime
  [[inputs.snmp.table.field]]
    name = "systemCPU-UsageEX"
    oid = "NAS-MIB::systemCPU-UsageEX"

  #  Enclosures
  [[inputs.snmp.table]]
    name = "snmp.QNAP.enclosureTable"
    oid = "NAS-MIB::enclosureTable"
    # Memory
    [[inputs.snmp.table.field]]
      name = "enclosureID"
      oid = "NAS-MIB::enclosureID"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "enclosureModel"
      oid = "NAS-MIB::enclosureModel"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "enclosureName"
      oid = "NAS-MIB::enclosureName"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "enclosureSystemTemp"
      oid = "NAS-MIB::enclosureSystemTemp"

  #  Fan
  [[inputs.snmp.table]]
    name = "snmp.QNAP.systemFanTableEx"
    oid = "NAS-MIB::systemFanTableEx"
    [[inputs.snmp.table.field]]
      name = "sysFanIndexEX"
      oid = "NAS-MIB::sysFanIndexEX"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "sysFanDescrEX"
      oid = "NAS-MIB::sysFanDescrEX"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "sysFanSpeedEX"
      oid = "NAS-MIB::sysFanSpeedEX"

  #  Power
  [[inputs.snmp.table]]
    name = "snmp.QNAP.systemPowerTable"
    oid = "NAS-MIB::systemPowerTable"
    [[inputs.snmp.table.field]]
      name = "systemPowerIndex"
      oid = "NAS-MIB::systemPowerIndex"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "systemPowerID"
      oid = "NAS-MIB::systemPowerID"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "systemPowerEnclosureID"
      oid = "NAS-MIB::systemPowerEnclosureID"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "systemPowerStatus"
      oid = "NAS-MIB::systemPowerStatus"
    [[inputs.snmp.table.field]]
      name = "systemPowerFanSpeed"
      oid = "NAS-MIB::systemPowerFanSpeed"
    [[inputs.snmp.table.field]]
      name = "systemPowerFanSpeed"
      oid = "NAS-MIB::systemPowerFanSpeed"
    [[inputs.snmp.table.field]]
      name = "systemPowerTemp"
      oid = "NAS-MIB::systemPowerTemp"

  #  Interfaces
  [[inputs.snmp.table]]
    name = "snmp.QNAP.systemIfTableEx"
    oid = "NAS-MIB::systemIfTableEx"
    [[inputs.snmp.table.field]]
      name = "ifIndexEX"
      oid = "NAS-MIB::ifIndexEX"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "ifDescrEX"
      oid = "NAS-MIB::ifDescrEX"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "ifPacketsReceivedEX"
      oid = "NAS-MIB::ifPacketsReceivedEX"
    [[inputs.snmp.table.field]]
      name = "ifPacketsSentEX"
      oid = "NAS-MIB::ifPacketsSentEX"
    [[inputs.snmp.table.field]]
      name = "ifErrorPacketsEX"
      oid = "NAS-MIB::ifErrorPacketsEX"

  #  Interfaces
  [[inputs.snmp.table]]
    name = "snmp.QNAP.ifXTable"
    oid = "IF-MIB::ifXTable"
    [[inputs.snmp.table.field]]
      name = "ifName"
      oid = "IF-MIB::ifName"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "ifHCInOctets"
      oid = "IF-MIB::ifHCInOctets"
    [[inputs.snmp.table.field]]
      name = "ifHCOutOctets"
      oid = "IF-MIB::ifHCOutOctets"

  ##
  ## Disk Details & Metrics
  ##
  #  Disk
  [[inputs.snmp.table]]
    name = "snmp.QNAP.diskTable"
    oid = "NAS-MIB::diskTable"
    [[inputs.snmp.table.field]]
      name = "diskIndex"
      oid = "NAS-MIB::diskIndex"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "diskID"
      oid = "NAS-MIB::diskID"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "diskEnclosureID"
      oid = "NAS-MIB::diskEnclosureID"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "diskSummary"
      oid = "NAS-MIB::diskSummary"
    [[inputs.snmp.table.field]]
      name = "diskTemperture"
      oid = "NAS-MIB::diskTemperture"
    [[inputs.snmp.table.field]]
      name = "diskSmartInfo"
      oid = "NAS-MIB::diskSmartInfo"
    [[inputs.snmp.table.field]]
      name = "diskGlobalSpare"
      oid = "NAS-MIB::diskGlobalSpare"
    [[inputs.snmp.table.field]]
      name = "diskModel"
      oid = "NAS-MIB::diskModel"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "diskCapacity"
      oid = "NAS-MIB::diskCapacity"
      is_tag = true

  ##
  ## Volume Details & Metrics
  ##
  #  Volumes
  [[inputs.snmp.table]]
    name = "snmp.QNAP.systemVolumeTableEx"
    oid = "NAS-MIB::systemVolumeTableEx"
    [[inputs.snmp.table.field]]
      name = "sysVolumeIndexEX"
      oid = "NAS-MIB::sysVolumeIndexEX"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "sysVolumeDescrEX"
      oid = "NAS-MIB::sysVolumeDescrEX"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "sysVolumeFSEX"
      oid = "NAS-MIB::sysVolumeFSEX"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "sysVolumeTotalSizeEX"
      oid = "NAS-MIB::sysVolumeTotalSize"
    [[inputs.snmp.table.field]]
      name = "sysVolumeFreeSize"
      oid = "NAS-MIB::sysVolumeFreeSizeEX"
    [[inputs.snmp.table.field]]
      name = "sysVolumeStatus"
      oid = "NAS-MIB::sysVolumeStatusEX"

  ##
  ## Disk Performance Details & Metrics
  ##
  #  Disk Performance
  [[inputs.snmp.table]]
    name = "snmp.QNAP.diskPerformanceTable"
    oid = "NAS-MIB::diskPerformanceTable"
    [[inputs.snmp.table.field]]
      name = "diskPerformanceIndex"
      oid = "NAS-MIB::diskPerformanceIndex"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "blvID"
      oid = "NAS-MIB::blvID"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "iops"
      oid = "NAS-MIB::iops"
    [[inputs.snmp.table.field]]
      name = "latency"
      oid = "NAS-MIB::latency"

  #  JBOD
  [[inputs.snmp.table]]
    name = "snmp.QNAP.jBODHdTable1"
    oid = "NAS-MIB::jBODHdTable1"
    [[inputs.snmp.table.field]]
      name = "jBODHdIndex1"
      oid = "NAS-MIB::jBODHdIndex1"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "jBODHdDescr1"
      oid = "NAS-MIB::jBODHdDescr1"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "jBODHdTemperature1"
      oid = "NAS-MIB::sysVolumeFSEX"
    [[inputs.snmp.table.field]]
      name = "jBODHdStatus1"
      oid = "NAS-MIB::jBODHdStatus1"
    [[inputs.snmp.table.field]]
      name = "jBODHdModel1"
      oid = "NAS-MIB::jBODHdModel1"
      is_tag = true
    [[inputs.snmp.table.field]]
      name = "jBODHdCapacity1 "
      oid = "NAS-MIB::jBODHdCapacity1"
    [[inputs.snmp.table.field]]
      name = "jBODHdSmartInfo1"
      oid = "NAS-MIB::jBODHdSmartInfo1"

Let’s save it, and run a quick telegraf check.

How-to test telegraf’s configuration

Before we restart telegraf services or anything, let’s run the next command, it should give you some output similar to what you can see here:

root@tig-monitor:/home/oper# telegraf --test --config /etc/telegraf/telegraf.d/qnap.conf 
2023-02-19T19:23:01Z I! Starting Telegraf 1.24.3
2023-02-19T19:23:01Z I! Available plugins: 222 inputs, 9 aggregators, 26 processors, 20 parsers, 57 outputs
2023-02-19T19:23:01Z I! Loaded inputs: snmp
2023-02-19T19:23:01Z I! Loaded aggregators: 
2023-02-19T19:23:01Z I! Loaded processors: 
2023-02-19T19:23:01Z W! Outputs are not used in testing mode!
2023-02-19T19:23:01Z I! Tags enabled: host=tig-monitor
> snmp.QNAP.cpuTable,agent_host=192.168.1.50,cpuID=2,cpuIndex=2,host=tig-monitor cpuUsage=1i 1676834608000000000
> snmp.QNAP.cpuTable,agent_host=192.168.1.50,cpuID=3,cpuIndex=3,host=tig-monitor cpuUsage=0i 1676834608000000000
> snmp.QNAP.cpuTable,agent_host=192.168.1.50,cpuID=4,cpuIndex=4,host=tig-monitor cpuUsage=0i 1676834608000000000
> snmp.QNAP.cpuTable,agent_host=192.168.1.50,cpuID=1,cpuIndex=1,host=tig-monitor cpuUsage=1i 1676834608000000000
> snmp.QNAP.systemTable,agent_host=192.168.1.50,host=tig-monitor cpu-TemperatureEX=59i,systemFreeMemEX=1931608064i,systemTemperatureEX=43i,systemTotalMemEX=4184276992i 1676834608000000000
> snmp.QNAP.enclosureTable,agent_host=192.168.1.50,enclosureID=33,enclosureModel=USB,host=tig-monitor enclosureSerialNum="--",enclosureSlot=4i,enclosureSystemTemp=0i 1676834609000000000
> snmp.QNAP.enclosureTable,agent_host=192.168.1.50,enclosureID=0,enclosureModel=TS-435XeU,enclosureName=nase80550,host=tig-monitor enclosureSerialNum="Q221I06176R",enclosureSlot=6i,enclosureSystemTemp=43i 1676834609000000000
> snmp.QNAP.enclosureTable,agent_host=192.168.1.50,enclosureID=32,enclosureModel=BOOT,host=tig-monitor enclosureSerialNum="--",enclosureSlot=1i,enclosureSystemTemp=0i 1676834609000000000
> snmp.QNAP.systemFanTableEx,agent_host=192.168.1.50,host=tig-monitor,sysFanDescrEX=System\ FAN\ 1,sysFanIndexEX=1 sysFanSpeedEX=2760i 1676834610000000000
> snmp.QNAP.systemFanTableEx,agent_host=192.168.1.50,host=tig-monitor,sysFanDescrEX=System\ FAN\ 2,sysFanIndexEX=2 sysFanSpeedEX=2700i 1676834610000000000
> snmp.QNAP.systemFanTableEx,agent_host=192.168.1.50,host=tig-monitor,sysFanDescrEX=System\ FAN\ 3,sysFanIndexEX=3 sysFanSpeedEX=2670i 1676834610000000000
> snmp.QNAP.systemPowerTable,agent_host=192.168.1.50,host=tig-monitor,systemPowerEnclosureID=0,systemPowerID=1,systemPowerIndex=1 systemPowerFanSpeed=-1i,systemPowerStatus=0i,systemPowerTemp=-1i 1676834614000000000
> snmp.QNAP.systemPowerTable,agent_host=192.168.1.50,host=tig-monitor,systemPowerEnclosureID=32,systemPowerID=1,systemPowerIndex=2 systemPowerFanSpeed=0i,systemPowerStatus=0i,systemPowerTemp=0i 1676834614000000000
> snmp.QNAP.systemPowerTable,agent_host=192.168.1.50,host=tig-monitor,systemPowerEnclosureID=33,systemPowerID=1,systemPowerIndex=3 systemPowerFanSpeed=0i,systemPowerStatus=0i,systemPowerTemp=0i 1676834614000000000
> snmp.QNAP.systemIfTableEx,agent_host=192.168.1.50,host=tig-monitor,ifDescrEX=eth0,ifIndexEX=1 ifErrorPacketsEX=0i,ifPacketsReceivedEX=207366i,ifPacketsSentEX=33180i 1676834614000000000
> snmp.QNAP.systemIfTableEx,agent_host=192.168.1.50,host=tig-monitor,ifDescrEX=eth1,ifIndexEX=2 ifErrorPacketsEX=0i,ifPacketsReceivedEX=0i,ifPacketsSentEX=0i 1676834614000000000
> snmp.QNAP.systemIfTableEx,agent_host=192.168.1.50,host=tig-monitor,ifDescrEX=eth2,ifIndexEX=3 ifErrorPacketsEX=0i,ifPacketsReceivedEX=221838i,ifPacketsSentEX=61151i 1676834614000000000

Grafana Dashboards

I created a Dashboard from scratch by selecting the best requests to the database, finishing off colors, thinking about graphics, and how to display them, and everything is automated so that it fits our environment without any problem and without having to edit anything manually. The Dashboard can be found here, once imported, you can use the top drop-down menus to select between the different variables:

  • https://grafana.com/grafana/dashboards/18229

Import Grafana Dashboards easily

I have already a wonderful Dashboard, ready just for you with everything you need to monitor our environment in a very simple way. Select the name you want and enter the ID: 18229, which is the unique ID of the Dashboard, or the URL:

  • https://grafana.com/grafana/dashboards/18229

With the menus above you can display and adjust the Dashboard to your different choices:

I hope you like it, and I would like to leave you the complete series here, so you can start playing with the plugins that I have been telling you about all these years:

  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part I (Installing InfluxDB, Telegraf, and Grafana on Ubuntu 20.04 LTS)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte II (Instalar agente Telegraf en Nodos remotos Linux)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte III Integración con PRTG
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte IV (Instalar agente Telegraf en Nodos remotos Windows)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte V (Activar inputs específicos, Red, MySQL/MariaDB, Nginx)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte VI (Monitorizando Veeam)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte VII (Monitorizar vSphere)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte VIII (Monitorizando Veeam con Enterprise Manager)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte IX (Monitorizando Zimbra Collaboration)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte X (Grafana Plugins)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte XI – (Monitorizando URL e IPS con Telegraf y Ping)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XII (Native Telegraf Plugin for vSphere)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XIII (Veeam Backup for Microsoft Office 365 v4)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XIV – Veeam Availability Console
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XV (IPMI Monitoring of our ESXi Hosts)
  • Looking for Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XVI (Performance and Advanced Security of Veeam Backup for Microsoft Office 365)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XVII (Showing Dashboards on Two Monitors Using Raspberry Pi 4)
  • En busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte XVIII – Monitorizar temperatura y estado de Raspberry Pi 4
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XIX (Monitoring Veeam with Enterprise Manager) Shell Script
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXIV (Monitoring Veeam Backup for Microsoft Azure)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXV (Monitoring Power Consumption)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXVI (Monitoring Veeam Backup for Nutanix)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXVII (Monitoring ReFS and XFS (block-cloning and reflink)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXVIII (Monitoring HPE StoreOnce)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXIX (Monitoring Pi-hole)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXIX (Monitoring Veeam Backup for AWS)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXXI (Monitoring Unifi Protect)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXXII (Monitoring Veeam ONE – experimental)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXXIII (Monitoring NetApp ONTAP)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXXIV (Monitoring Runecast)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXXV (GPU Monitoring)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXXVI (Monitoring Goldshell Miners – JSONv2)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XXXVII (Monitoring Veeam Backup for Google Cloud Platform)
  • En Busca del Dashboard perfecto: InfluxDB, Telegraf y Grafana – Parte XXXVIII (Monitorizando Temperatura y Humedad con Xiaomi Mijia)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XL (Veeam Backup for Microsoft 365 – Restore Audit)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XLI (Veeam Backup for Salesforce)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XLII (Veeam ONE v12 Audit Events)
  • Looking for the Perfect Dashboard: InfluxDB, Telegraf, and Grafana – Part XLIII (Monitoring QNAP using SNMP v3)

Filed Under: opensource Tagged With: grafana qnap, qnap dashboard, qnap grafana, qnap monitoring, qnap snmp, qnap visualization

Reader Interactions

Comments

  1. Dennis Faucher says

    6th March 2023 at 11:24 am

    Thanks Jorge. SNMP is never easy.

  2. Ahmet says

    7th March 2023 at 7:36 am

    Hi Jorge;

    I did qnap configuration. I wrote the necessary information in the necessary places in the qnap.conf file but I am getting an error during testing. error code :

    2023-03-07T07:27:52Z E! [telegraf] Error running agent: error loading config file /etc/telegraf/telegraf.d/qnap.conf: error parsing data: line 493: key `name’ is in conflict with line 1e9d

  3. jorgeuk says

    7th March 2023 at 10:48 am

    Hello, that is weird, there is no such line as 493 on my qnap.conf, I just have 293 lines. I have copied/paste it again, please review it and copy/paste it again. Are you using nano? or vi? No additional code is getting there?

    Thanks!

  4. Ahmet says

    9th March 2023 at 7:32 am

    yes there are 293 lines. but this is the error. I downloaded the config file and opened it in notepad++. likewise 293 lines. I can’t understand why it is showing 493 lines on the error screen.

  5. jorgeuk says

    9th March 2023 at 2:30 pm

    That is very strange, have you done all the SNMP steps, downloading the MIB, etc?

  6. Ahmet says

    15th March 2023 at 6:51 am

    yes, I made the snmtp settings on qnap as in the article. I downloaded mib and copied it to /usr/share/snmp/mibs/ folder. I filled in the config file according to my own information. So I did everything according to the article.

  7. cNone says

    1st June 2023 at 2:51 pm

    Hello again for a different issue.

    I have installed and got it working with just 1 qnap. Whenever I try to add a second one with below settings:
    # List of agents to poll
    agents = [ “192.168.2.249”, “192.168.2.20” ]

    I am getting no data and the log says:

    telegraf [inputs.snmp] Collection took longer than expected; not complete after interval of 30s

    I have changed my intervals to 600s and time out to 360s without luck. BTW I tried to add separate conf files for each qnap too and that didn’t work either.

    Any thoughts? (Influx V2, telegraf 1.26, Grafana 9.? Qnap1: TS 1263U Qnap2: TS 431P2

  8. cNone says

    1st June 2023 at 8:51 pm

    Thank you for the great tutorial. I have written a question here but it got lost.

    I am trying to add two of my Qnapunits to dahsboard. They show data when you select from the filter one by one but if you select “all” then it throws no data to all panels. telegraf test giving results for both of the units well, and again if I choose one unit I can see their data separately, but of course I want to see both units in one dashboard.

    Influx V2, Telegraf 1.26 and Grafana 9.2 on Ubuntu

  9. jorgeuk says

    2nd June 2023 at 9:53 am

    Hello,
    I do not have two QNAPS to try. Did you resolved the issue of collecting data right?

    Let me see how the variables are made, one second.

  10. cNone says

    3rd June 2023 at 7:06 am

    Hello again and thank you for response,

    I am collecting data allright, I just can not see both of the units same time. Here selected all:
    https://ibb.co/pjRw0pV
    Here Selected first unit:
    https://ibb.co/pjRw0pV
    And here is the other unit selected:
    https://ibb.co/pjRw0pV
    And total ram and uptime info is working if I select transformers one by one. Thats another issue and it can be resolve itself when I see both units in the same time. I suppose it is because its working when I select transformers in the edit table window.

  11. cNone says

    5th June 2023 at 12:19 pm

    Yes I have resolved the getting info issue and successfully got nearly all the info dahsboard requests. I just can not see both units in the same time. I have to choose it from the model dropdown. One by one seems working but when I select “all” then it throws no data to all panels.

  12. cNone says

    6th June 2023 at 8:11 am

    I might misunderstand but will you look into your code or do you need me to share my variables with you? Thank you 🙂

  13. JulianP says

    13th June 2023 at 5:48 am

    Hi,
    When I import the dashboard to Grafana, it shows these errors:
    Templating [qnapmodel]
    Error updating options: InfluxDB Error: error parsing query: found FROM, expected SELECT, DELETE, SHOW, CREATE, DROP, EXPLAIN, GRANT, REVOKE, ALTER, SET, KILL at line 1, char 1
    Templating [qnaphostname]
    Error updating options: InfluxDB Error: error parsing query: found FROM, expected SELECT, DELETE, SHOW, CREATE, DROP, EXPLAIN, GRANT, REVOKE, ALTER, SET, KILL at line 1, char 1
    Templating [qnapdisk]
    Error updating options: InfluxDB Error: error parsing query: found FROM, expected SELECT, DELETE, SHOW, CREATE, DROP, EXPLAIN, GRANT, REVOKE, ALTER, SET, KILL at line 1, char 1

  14. jorgeuk says

    14th June 2023 at 5:20 pm

    Hello Julian,
    Are you sure you are using InfluxDB v2.0, and you are using buckets, and all yes?

    Thank you!

  15. cNone says

    14th June 2023 at 6:49 pm

    What about 2 qnap units at the same time 😀 Could you find a chance to look at the variables? If you need me to do testing I will gladly contribute. I am writing comments on github under the name : sinankizar. If you could open a repo for this that would be great 🙂

  16. JulianP says

    17th June 2023 at 6:13 am

    Hi Jorge,

    You were right, I was using Influxdb v1, now it’s working.

    Thanks

  17. Evripidis says

    28th June 2023 at 10:45 pm

    Hi Jorge,

    thank you for the great tutorials!

    I imported the dashboard, but I get no data at all. The variable drop down menus are empty.

    I ran the variable queries directly in InfluxDB and I got the proper results (e.g. the QNAP model). I had to change the “v.defaultBucket” to the actual name of the bucket for the query to work. I tried replacing it with the bucket name in the dashboard variable query, but it didn’t help.

    The data is available in InfluxDB. I can see results in the Infux queries. Grafana also sees the data in Explore.

    My setup:
    Telegraf 1.27 (native, on a raspberryPi)
    InfluxDB 2.71 (docker container on QNAP)
    Grafana 10.0.1 (docker container on QNAP)

    Any ideas what to check?

    Cheers!
    Evripidis

  18. jorgeuk says

    29th June 2023 at 12:26 pm

    Hello, you can open some widgets on Grafana dashboard, and copy those queries in influxdb directly changing the bucket. Do they load?

    If so, I guess the error could be on how the InfluxDB is configured on Grafana maybe.

  19. cNone says

    30th June 2023 at 6:52 am

    Any thoughts on 2 qnap’s at the sametime?

  20. jorgeuk says

    30th June 2023 at 8:59 pm

    Will push fake data to my db this weekend and let you know.

  21. snnkzr says

    24th July 2023 at 10:45 am

    Hello, any updates on multiple qnaps? Thank you

  22. jorgeuk says

    31st July 2023 at 5:33 pm

    Hello,
    Well, finally mate. After a few months, here you go. Full support for multi-QNAPS:
    https://grafana.com/api/dashboards/18229/revisions/2/download

    Give it a try and let me know.

    Best regards

  23. snnkzr says

    7th August 2023 at 8:35 am

    Thank you so much for the update and the great effort you put into this. Now everything works except a small detail which I can live with it. The RAM and Uptime is empty. This happened on first version and I’ve checked all the fields in the transform box. That allowed me to display the first host’s RAM amount and uptime but not for the second one. Again it is not that i can not live with.

  24. jorgeuk says

    7th August 2023 at 8:04 pm

    Oh I see, let me check what happened mate. Thanks for letting me know.

  25. jorgeuk says

    7th August 2023 at 8:25 pm

    Hello, you can grab the latest version of the dashboard:
    https://grafana.com/grafana/dashboards/18229-qnap-dashboard-telegraf-snmp-influxdb/?tab=revisions

    Cheers

  26. snnkzr says

    9th August 2023 at 7:59 am

    MATE!! Thank you so much for your great effort. Now everything’s working. Thanks again.

  27. jorgeuk says

    9th August 2023 at 10:44 am

    I am glad I could be of help. Have a great day

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

  • E-mail
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • YouTube

Posts Calendar

March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Feb   Apr »

Disclaimer

All opinions expressed on this site are my own and do not represent the opinions of any company I have worked with, am working with, or will be working with.

Copyright © 2023 · The Blog of Jorge de la Cruz