Monitoring NVIDIA GPUs with Zabbix

You can install it with apt install zabbix-agent2-plugin-nvidia-gpu.

There is also a method to install it by building from source.
This guide will cover how to install it from source.
Refer to this part if you fall under the following cases.
If the package installation works without issues, you don’t need to follow this guide.

Reason for building from source:

  1. A guide for those who have problems installing the package.
  2. Package installation uses a pre-compiled binary built for specific OS, glibc, and NVML versions designated by the Zabbix repo,
    so compatibility issues can easily occur when the OS version or driver combination differs.
    In contrast, source build compiles directly based on the node’s actual NVML and glibc environment,
    making it less affected by OS and driver differences and allowing more stable operation.

Tip: In certain driver/kernel combinations (Ubuntu 22.04 + Driver 55x/57x + CUDA 12.x, etc.),
Zabbix Agent2 has a bug where it terminates immediately when loading the NVIDIA plugin.

Below is one of the officially reported issues.
(ZBX-25821 — agent2 crashes during plugin loading)

https://support.zabbix.com/browse/ZBX-25821

Tip: Depending on the OS type, commands and paths may vary slightly, so adjust as needed.

(Part 1) Installing the NVIDIA GPU Plugin from Source

Installation environment

Ubuntu 22.04
Zabbix 7.4
GPU: NVIDIA GeForce RTX 4080 SUPER
NVIDIA Driver pre-installed
Zabbix Agent2 pre-installed

  1. Install Go 1.23 (required if missing or lower than 1.23)
# cd /usr/local/src
# wget https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
# rm -rf /usr/local/go
# tar -C /usr/local -xzf go1.23.2.linux-amd64.tar.gz

# echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
# source ~/.bashrc

# go version   # → Should output 1.23.x
  1. Install build tools
# apt update
# apt install -y build-essential
  1. Download NVIDIA GPU plugin source
# cd /usr/local/src

# wget https://cdn.zabbix.com/zabbix-agent2-plugins/sources/nvidia-gpu/zabbix-agent2-plugin-nvidia-gpu-7.4.4.tar.gz
# tar xvf zabbix-agent2-plugin-nvidia-gpu-7.4.4.tar.gz
# cd zabbix-agent2-plugin-nvidia-gpu-7.4.4
  1. Build the plugin
# CGO_ENABLED=1 go build -o zabbix-agent2-plugin-nvidia-gpu
  1. Install the plugin
# mkdir -p /usr/libexec/zabbix
# install -m 0755 zabbix-agent2-plugin-nvidia-gpu /usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu
  1. Install the plugin config file
# install -m 0644 nvidia.conf /etc/zabbix/zabbix_agent2.d/plugins.d/nvidia.conf

⚠ Warning
The plugin path may differ depending on the server environment.
Therefore, always verify that /etc/zabbix/zabbix_agent2.d/plugins.d matches your environment.

  1. Modify the config file
# vi /etc/zabbix/zabbix_agent2.d/plugins.d/nvidia.conf

The following two lines must exist:

Plugins.NVIDIA.System.Path=/usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu

Plugins.NVIDIA.Timeout=10

Why is this needed?

Path= : For agent2 to know where the GPU plugin binary is located.

Timeout= : To prevent agent2 from dying due to timeout when NVML requests take long.

In short, these are options “required for agent2 to properly load and execute the plugin.”

  1. In zabbix_agent2.conf, verify the following settings:
Include=/etc/zabbix/zabbix_agent2.d/*.conf

Include=/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf
  1. Restart zabbix agent:
# systemctl restart zabbix-agent2
# systemctl status zabbix-agent2

If it appears like below, the plugin installation is successful.

Finish.

After creating a host in Zabbix and applying the “Nvidia by Zabbix agent 2” template,
you can then build a Grafana dashboard.

If the plugin runs normally and Zabbix successfully collects GPU metrics,
the subsequent Grafana dashboard configuration follows the same Zabbix–Grafana integration method as before.
This article focuses only on the GPU plugin installation process, and
visualization is omitted since it was thoroughly covered in previous series.

Grafana GPU Dashboard Example

🛠 마지막 수정일: 2025.11.20

ⓒ 2025 엉뚱한 녀석의 블로그 [quirky guy's Blog]. 본문 및 이미지를 무단 복제·배포할 수 없습니다. 공유 시 반드시 원문 링크를 명시해 주세요.
ⓒ 2025 엉뚱한 녀석의 블로그 [quirky guy's Blog]. All rights reserved. Unauthorized copying or redistribution of the text and images is prohibited. When sharing, please include the original source link.

💡 도움이 필요하신가요?
Zabbix, Kubernetes, 그리고 다양한 오픈소스 인프라 환경에 대한 구축, 운영, 최적화, 장애 분석이 필요하다면 언제든 편하게 연락 주세요.

📧 Contact: jikimy75@gmail.com
💼 Service: 구축 대행 | 성능 튜닝 | 장애 분석 컨설팅


💡 Need Professional Support?
If you need deployment, optimization, or troubleshooting support for Zabbix, Kubernetes, or any other open-source infrastructure in your production environment, feel free to contact me anytime.

📧 Email: jikimy75@gmail.com
💼 Services: Deployment Support | Performance Tuning | Incident Analysis Consulting