collectd: remove not needed fix
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 a9ea1cf6ed
)
This commit is contained in:
parent
6570249dc5
commit
2773123201
1 changed files with 0 additions and 10 deletions
|
@ -1,10 +0,0 @@
|
|||
--- 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) {
|
Loading…
Reference in a new issue