This was not a real fix but a workaround. It is no longer clear to me
why this was necessary. Deleting the patch restores the upstream
behaviour of the collected for the smart plugin. I have tested it and on
my system the hard disk to be monitored is recognised.
root@system ~ # cat /sys/class/block/sda/uevent
MAJOR=8
MINOR=0
DEVNAME=sda
DEVTYPE=disk
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit
a9ea1cf6ed08940be08c6d0170514665ac41d6c1)
+++ /dev/null
---- a/src/smart.c
-+++ b/src/smart.c
-@@ -610,7 +610,6 @@ static int smart_read(void) {
- return -1;
- }
- udev_enumerate_add_match_subsystem(enumerate, "block");
-- udev_enumerate_add_match_property(enumerate, "DEVTYPE", "disk");
- udev_enumerate_scan_devices(enumerate);
- devices = udev_enumerate_get_list_entry(enumerate);
- if (devices == NULL) {