Skip to content

Iddunx/Zabbix-Windows-GPU-AMD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Zabbix Windows GPU (AMD) – LibreHardwareMonitor HTTP Template

This template collects AMD GPU and hardware metrics on Windows using LibreHardwareMonitor JSON API (HTTP method).
It does not rely on WMI.


✅ Tested on

  • AMD Radeon RX 9070 XT
  • Windows 11
  • Zabbix Agent 7.4
  • Zabbix Server 7.4

📦 Requirements


🚀 Installation

1️⃣ Install LibreHardwareMonitor

Download from: https://github.com/LibreHardwareMonitor/LibreHardwareMonitor

Or install via winget:

winget install LibreHardwareMonitor.LibreHardwareMonitor

2️⃣ Enable Web Server in LibreHardwareMonitor

Run LibreHardwareMonitor as Administrator:

Options → Remote Web Server → Run

Default port: 8085

Verify in browser:

http://localhost:8085/data.json

3️⃣ Allow Windows Firewall access

Run PowerShell as Administrator:

New-NetFirewallRule `
  -DisplayName "LibreHardwareMonitor Allow TCP" `
  -Direction Inbound `
  -LocalPort 8085 `
  -Protocol TCP `
  -Action Allow `
  -Profile Any

4️⃣ Import and Deploy Template

  • Import template into Zabbix
  • Link it to your Windows host
  • Ensure host interface IP/DNS matches the monitored machine
  • Make sure Zabbix Server/Proxy can access:
http://{HOST.CONN}:8085/data.json

⚙ How It Works

  • Master item: lhm.json (HTTP agent)
  • All hardware metrics are dependent items
  • Data is parsed via JSONPath
  • Values are normalized using:
    • RegEx
    • Comma → dot replacement

⚠ Important Notes

  • JSONPath filters may vary depending on hardware
  • Sensor IDs differ between:
    • GPU models
    • Motherboards
    • Storage devices
    • LHM versions

If metrics return empty values:

  1. Open:
    http://localhost:8085/data.json
    
  2. Locate correct SensorId
  3. Adjust JSONPath in item preprocessing

🛠 Troubleshooting

Problem Possible Cause
No data LHM not running
Timeout Firewall blocking port 8085
Unsupported item value Wrong JSONPath
Works locally but not from Zabbix LHM listening only on 127.0.0.1

💡 Tip

If JSONPath does not match your hardware layout:

  • Inspect data.json
  • Search for SensorId
  • Adjust template accordingly

You can also use AI to generate correct JSONPath based on your data.json.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors