Git Product home page Git Product logo

hwinfo-telegraf-plugin's Introduction

Hello! I'm Zach 👋

Passionate Javascript engineer and homelabber with way too many side projects 💪


LinkedIn   About Me   zachstence

Monkeytype Stats   Advent of Code


A little about me...

  • 🏡 Grand Prairie, TX
  • 💻 Full-Stack Javascript Engineer and Frontend Team Lead at Zencastr
  • 👨🏼‍💻 Co-Founder of Sprocket
  • 🔥 Homelabber, custom keyboard builder, and amateur astrophotographer

More information and stats...

🧑🏼‍💻 Languages and Tools I use

Frontend

typescript   javascript   svelte   react   tailwind   html5   css3   jest   cypress  

Backend

nodejs   nestjs   graphql   express  

Infrastructure

docker   git   grafana   postgresql   redis   mongodb  

OS / Software

linux   windows   vscode   postman
🏆 GitHub Trophies

zachstence

📈 Development Stats

Github stats   GitHub Streak

hwinfo-telegraf-plugin's People

Contributors

zachstence avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fiskvik

hwinfo-telegraf-plugin's Issues

Double/Triple entries in Plugin Output.

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

###############################################################################

INPUT PLUGINS

###############################################################################
[[inputs.execd]]
command = ["C:/InfluxData/telegraf/hwinfo-telegraf-plugin-1.2.0.exe"]
[inputs.execd.tagpass]
sensorName = ["Samsung"]
###############################################################################

OUTPUT PLUGINS

###############################################################################
[[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

error: didn't read full shared memory buffer

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"}

// TODO how to resolve this? Config options? Read header first to determine buffer size?

I guess there are many sensors on that server (686 columns in CSV export). Do you have suggestions how to debug this?
Thanks.

Integration of PresentMon

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!

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.