monitoring-plugins icon indicating copy to clipboard operation
monitoring-plugins copied to clipboard

sensors-temperatures: Support ignoring specific sensors

Open kam193 opened this issue 2 months ago • 3 comments

Describe the solution you'd like

On my machine, some of the sensors detected by the libsensors (sensors-detect) are not really used for that purposes or bogus, and as so their monitoring does not make sense. It would be helpful being able to have possibility to ignore them when using sensors-temperatures.

E.g. I'm almost sure there is no place with -61 Celsius degrees. I may be wrong, of course. Other reports static high temperature, what makes the monitoring service in the constant warning state.

Additional context

libsensors supports configuration which allows ignoring some data, but it's not used when reading data with psutil, as here. As so, the check plugin and sensors command returns different sensors set on my machine

kam193 avatar Oct 19 '25 15:10 kam193

When I played with Conky to displays sensor data - ricing was fun - I remember that some sensors weren't properly detected and interpreted by the libraries and the fix for this was to add a lable and a multipler in the configuration.

Maybe adding a parameter to remove the sensor and a parameter to add a function to transform the sensor data could solve the problems?

slalomsk8er avatar Oct 20 '25 07:10 slalomsk8er

For me, ignoring would be enough. The transformation is interesting though, but I'm not sure if it's doable - wouldn't it require building either quite an extensive transformation support or using e.g. an 'exec' and providing the code as parameter? It sounds like a lot to do, unless you want the support just a static variable adjustment

kam193 avatar Oct 20 '25 07:10 kam193

I guess, I would solve it in the way it was done in csv-values by providing a query to sqlite or like it's done in snmp by providing a CSV file to format the output.

slalomsk8er avatar Oct 20 '25 08:10 slalomsk8er