mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-08-23 02:43:00 +02:00
Check readability of sensor files in TempCollector
This commit is contained in:
@@ -116,6 +116,10 @@ func (m *TempCollector) Init(config json.RawMessage) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sensor file
|
// Sensor file
|
||||||
|
_, err = ioutil.ReadFile(file)
|
||||||
|
if err != nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
sensor.file = file
|
sensor.file = file
|
||||||
|
|
||||||
// Sensor tags
|
// Sensor tags
|
||||||
|
Reference in New Issue
Block a user