zachstence / hwinfo-telegraf-plugin Goto Github PK
View Code? Open in Web Editor NEWGather Windows system hardware information from HWiNFO
License: MIT License
Gather Windows system hardware information from HWiNFO
License: MIT License
Hey, is it normal that i am getting double or sometimes even triple identical readings during each pull?
I discovered this while attempting to do some filtering and report only S.M.A.R.T. values. If i disable filtering then i end up pulling and eventually pushing 1000 metrics every 10 seconds.
Attached is console output via stdout and my settings:
[agent]
debug = true
quiet = false
interval = "15s"
round_interval = true
###############################################################################
###############################################################################
[[inputs.execd]]
command = ["C:/InfluxData/telegraf/hwinfo-telegraf-plugin-1.2.0.exe"]
[inputs.execd.tagpass]
sensorName = ["Samsung"]
###############################################################################
###############################################################################
[[outputs.file]]
files = ["stdout"]
2024-02-03T23:30:45Z D! [outputs.file] Wrote batch of 160 metrics in 9.6465ms 2024-02-03T23:30:45Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics 2024-02-03T23:30:47Z D! [agent] Stopping service inputs 2024-02-03T23:30:47Z I! [inputs.execd] Process C:/InfluxData/telegraf/hwinfo-telegraf-plugin-1.2.0.exe shut down 2024-02-03T23:30:47Z D! [agent] Input channel closed 2024-02-03T23:30:47Z I! [agent] Hang on, flushing any cached metrics before shutdown hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777216,readingName=Drive\ Temperature,readingNameOrig=Drive\ Temperature,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=40 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777217,readingName=Drive\ Temperature\ 2,readingNameOrig=Drive\ Temperature\ 2,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=40 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777218,readingName=Drive\ Temperature\ 3,readingNameOrig=Drive\ Temperature\ 3,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=46 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440512,readingName=Drive\ Remaining\ Life,readingNameOrig=Drive\ Remaining\ Life,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=% usage=90 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440513,readingName=Drive\ Available\ Spare,readingNameOrig=Drive\ Available\ Spare,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=% usage=100 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217728,readingName=Drive\ Failure,readingNameOrig=Drive\ Failure,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=Yes/No other=0 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217729,readingName=Drive\ Warning,readingNameOrig=Drive\ Warning,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=Yes/No other=0 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217730,readingName=Total\ Host\ Writes,readingNameOrig=Total\ Host\ Writes,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=GB other=36401 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217732,readingName=Total\ Host\ Reads,readingNameOrig=Total\ Host\ Reads,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=GB other=121738 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440512,readingName=Read\ Activity,readingNameOrig=Read\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440513,readingName=Write\ Activity,readingNameOrig=Write\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0.572 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440514,readingName=Total\ Activity,readingNameOrig=Total\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0.572 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217728,readingName=Read\ Rate,readingNameOrig=Read\ Rate,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB/s other=0 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217729,readingName=Write\ Rate,readingNameOrig=Write\ Rate,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB/s other=0.016 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217730,readingName=Read\ Total,readingNameOrig=Read\ Total,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB other=41890 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217731,readingName=Write\ Total,readingNameOrig=Write\ Total,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB other=64992 1707003046167909600 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777216,readingName=Drive\ Temperature,readingNameOrig=Drive\ Temperature,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=40 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777217,readingName=Drive\ Temperature\ 2,readingNameOrig=Drive\ Temperature\ 2,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=40 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=16777218,readingName=Drive\ Temperature\ 3,readingNameOrig=Drive\ Temperature\ 3,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=°C temp=46 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440512,readingName=Drive\ Remaining\ Life,readingNameOrig=Drive\ Remaining\ Life,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=% usage=90 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440513,readingName=Drive\ Available\ Spare,readingNameOrig=Drive\ Available\ Spare,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=% usage=100 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217728,readingName=Drive\ Failure,readingNameOrig=Drive\ Failure,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=Yes/No other=0 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217729,readingName=Drive\ Warning,readingNameOrig=Drive\ Warning,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=Yes/No other=0 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217730,readingName=Total\ Host\ Writes,readingNameOrig=Total\ Host\ Writes,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=GB other=36401 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217732,readingName=Total\ Host\ Reads,readingNameOrig=Total\ Host\ Reads,sensorId=402653209600,sensorInst=0,sensorName=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=S.M.A.R.T.:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=smart,shmemVersion=v2\ rev1,unit=GB other=121738 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440512,readingName=Read\ Activity,readingNameOrig=Read\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440513,readingName=Write\ Activity,readingNameOrig=Write\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0.572 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=117440514,readingName=Total\ Activity,readingNameOrig=Total\ Activity,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=% usage=0.572 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217728,readingName=Read\ Rate,readingNameOrig=Read\ Rate,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB/s other=0 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217729,readingName=Write\ Rate,readingNameOrig=Write\ Rate,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB/s other=0.016 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217730,readingName=Read\ Total,readingNameOrig=Read\ Total,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB other=41890 1707003047167648700 hwinfo,host=xxxxxxx,hwinfoVersion=7.70-5350,pluginVersion=(devel),readingId=134217731,readingName=Write\ Total,readingNameOrig=Write\ Total,sensorId=402653209700,sensorInst=0,sensorName=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorNameOrig=Drive:\ Samsung\ SSD\ 970\ EVO\ 250GB\ (S465NX0K933671P),sensorType=drive,shmemVersion=v2\ rev1,unit=MB other=64992 1707003047167648700 2024-02-03T23:30:47Z D! [outputs.file] Wrote batch of 32 metrics in 2.0595ms 2024-02-03T23:30:47Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics 2024-02-03T23:30:47Z I! [agent] Stopping running outputs 2024-02-03T23:30:47Z D! [agent] Stopped Successfully
Hello,
I tried this plugin and it works great on a desktop. When I tried it on a server, I get the error: "didn't read full shared memory buffer".
c:\Program Files\InfluxData\telegraf\plugins>hwinfo-telegraf-plugin.exe
2022/10/18 18:52:25 No config found. Loading default config for plugin hwinfo
{"level":"fatal","time":"2022-10-18T18:52:26+03:00","message":"didn't read full shared memory buffer"}
I guess there are many sensors on that server (686 columns in CSV export). Do you have suggestions how to debug this?
Thanks.
Hello,
would it be possible to include the sensor/integrated program “PresentMon”? Apparently the sensor is not being used yet (HWiNFO64 v7.72-5355).
Thank you very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.