Git Product home page Git Product logo

zabbix-temperature-monitor-windows's Introduction

Monitoring CPU temperature of Windows hosts with Zabbix 3.4

This tutorial was based on Myopsblog that is a translate of original post on Habr.

This tutorial won't help you installing and configuring Zabbix Agent on Windows, this needs to be done in advance.

Creating Item in Zabbix

First you need to create the temperature item in Zabbix, it can be an item directly on host or on template.

Creating item in Zabbix

Placing files

Download the OpenHardwareMonitor folder and place on C:
Add the last line of zabbix_agentd.conf to your zabbix agent config file:

UserParameter=Temperature.CPU, type C:\OpenHardwareMonitor\temperature.txt

Starting TempMonitoring.bat

The best option is to run this script as Startup program. You can start manually for testing.

Obtaining data

After you run the TempMonitoring.bat script, just wait some minutes and then your item in Zabbix will gather data:

Graph showing CPU Temperature

Why this works?

TempMonitoring.bat will call OpenHardwareMonitorReport.exe, apply some filters, gets the average CPU temperature and save to temperature.txt file, sleeps one minute and then repeat infinitely. Zabbix Agent will request Temperature.CPU item, which will simple read the file and return to Zabbix Server.

Changing parameters

You can change the sleep time in seconds of TempMonitoring.bat for your need, just change 60 to your desired value.

You can modify the path as well, just change all six occurrences of path at TempMonitoring.bat and the path of UserParameter at your zabbix agent config file.

zabbix-temperature-monitor-windows's People

Contributors

craviee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zabbix-temperature-monitor-windows's Issues

temperature missing in outputreport

the relevant part of my output report (AMD machine) looks like this, somehow temperature is missing, but i can find it in the GUI ... whats up ?

Sensors

|
+- ASUS PRIME A320M-K (/mainboard)
|
+- AMD Ryzen 3 3200G with Radeon Vega Graphics (/amdcpu/0)
| +- CPU Total : 67.9348 67.9348 67.9348 (/amdcpu/0/load/0)
| +- CPU Core #1 : 73.913 73.913 73.913 (/amdcpu/0/load/1)
| +- CPU Core #2 : 67.3913 67.3913 67.3913 (/amdcpu/0/load/2)
| +- CPU Core #3 : 66.3043 66.3043 66.3043 (/amdcpu/0/load/3)
| +- CPU Core #4 : 64.1304 64.1304 64.1304 (/amdcpu/0/load/4)
|
+- Generic Memory (/ram)
| +- Memory : 51.4113 51.4113 51.4113 (/ram/load/0)
| +- Used Memory : 7.16447 7.16447 7.16447 (/ram/data/0)
| +- Available Memory : 6.77114 6.77114 6.77114 (/ram/data/1)
|
+- AMD Radeon(TM) Vega 8 Graphics (/atigpu/0)
| +- GPU Core : 0.001 0.001 0.001 (/atigpu/0/voltage/0)
| +- GPU Core : 200 200 200 (/atigpu/0/clock/0)
| +- GPU Memory : 1333 1333 1333 (/atigpu/0/clock/1)
| +- GPU Core : 0 0 0 (/atigpu/0/load/0)
|
+- Generic Hard Disk (/hdd/0)
| +- Used Space : 0.259848 0.259848 0.259848 (/hdd/0/load/0)
|
+- Generic Hard Disk (/hdd/1)
| +- Used Space : 72.4425 72.4425 72.4425 (/hdd/1/load/0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.