Skip to content

HWiNFO API Server for Zabbix LLD. Based on RemoteHWInfo HWiNFO / GPU-Z / MSI Afterburner Remote Monitor HTTP JSON Web Server

Notifications You must be signed in to change notification settings

anklav24/hwinfo_api_server

 
 

Repository files navigation

HWiFO API Server for Zabbix LLD

Overview

You need this if you want to grab certain data from HWiNFO

  • Apply filters
  • Get data into Zabbix (Zabbix Agent, HTTP Agent)
  • Use Zabbix template (LLD, Zabbix agent)
  • Based on RemoteHWInfo HWiNFO / GPU-Z / MSI Afterburner Remote Monitor HTTP JSON Web Server
  • * GPU-Z and Afterburner data are possible in future

Requirements

  • Windows 10 or above
  • Zabbix server 5.x LTS

Installation

Configure Zabbix-host

  • Download Latest Release
  • Unzip and copy all files to Zabbix Agent folder.
  • Run as administrator task_scheduler/import_autostart.cmd
  • Restart Zabbix Agent service.
Zabbix Agent/
├── task_scheduler
├── user_scripts
├── user_templates
└── zabbix_agentd.conf.d

Run HWiNFO API server

  • Run as administrator: user_scripts/hwinfo_api_server/hwinfo_api_server.exe

Configure Zabbix-server

  • Import the template: zabbix_agentd.conf.d/Template HWiNFO API Server.xml
  • Attach to a host

Links

Other

Troubleshooting:

  • Check firewall if you can not access from LAN
  • Check tests if you can not get results from API
  • If remotehwinfo.exe shows and just disappear try to change ports
  • run tests python -m pytest -v -s
  • Check Zabbix Agent/zabbix_agentd.log
  • Check log on zabbix-server docker logs -n 100 -f zabbix-docker-zabbix-server-1
  • In zabbix keys replace space -> %20 comma -> %2C
  • Allowed Zabbix key parameters
Special characters "\, ', ", `, *, ?, [, ], {, }, ~, $, !, &, ;, (, ), <, >, |, #, @, 0x0a" are not allowed in the parameters.

For developers

  • Run in the Python environment
.\run_hwinfo_api_server.cmd (Run as administrator)
  • Build server
 .\build.ps1

Credits:

TODO:

  • add args for .exe
    • debug
    • ports
  • add my contacts in the code

About

HWiNFO API Server for Zabbix LLD. Based on RemoteHWInfo HWiNFO / GPU-Z / MSI Afterburner Remote Monitor HTTP JSON Web Server

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 90.7%
  • PowerShell 4.7%
  • HTML 1.9%
  • CSS 1.4%
  • Batchfile 1.3%