]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
collectd: add some devices to the ignore list
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 30 Jan 2025 09:18:01 +0000 (10:18 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 30 Jan 2025 09:18:01 +0000 (10:18 +0100)
disks: cdroms, tape, loop and ram
cooling-devices: 0-7 was already disabled but there are more possible

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/collectd/collectd.conf
config/collectd/collectd.thermal

index be6f1fd12c4f95f131b89d60b78c40154323c764..020604e744d9236aabbeca1d6b80c3fae6cca277 100644 (file)
@@ -40,6 +40,10 @@ include "/etc/collectd.precache"
 
 <Plugin "disk">
        Disk "/[hs]d[a-z][0-9]$/"
+       Disk "/loop[0-9]$/"
+       Disk "/sg[0-9]$/"
+       Disk "/sr[0-9]$/"
+       Disk "/ram[0-9]$/"
        IgnoreSelected true
 </Plugin>
 
index 97403fbb62dbd97895338d9673498a7e518411d0..46d9a4a0606eeeb12f1cca5704140a0ebc14850d 100644 (file)
@@ -1,13 +1,7 @@
 LoadPlugin thermal
 
 <Plugin thermal>
-       Device "cooling_device0"
-       Device "cooling_device1"
-       Device "cooling_device2"
-       Device "cooling_device3"
-       Device "cooling_device4"
-       Device "cooling_device5"
-       Device "cooling_device6"
-       Device "cooling_device7"
+       Device "/cooling_device[0-9]/"
+       Device "/cooling_device[0-9][0-9]/"
        IgnoreSelected true
 </Plugin>