author | Alessandro Iurlano <alessandro.iurlano@gmail.com> | |
Sat, 7 Jun 2008 13:16:18 +0000 (15:16 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sat, 7 Jun 2008 18:47:18 +0000 (20:47 +0200) | ||
commit | 8c086dac4095529e02530b28fd92e50ad296acce | |
tree | 2b7df40071815b7378b4effab00008f064c4df77 | tree | snapshot |
parent | 48b794525072b1ff00a90497ef0bb1f4030510f4 | commit | diff |
disk plugin: Use correct name under Linux 2.4
Hello everybody.
I have noticed that disk graphs are displayed by collection.cgi as
disk (71687000) instead of the correct disk name on 2.4.x linux
kernels.
The problem seems caused by the fact that the position of disk name of
/proc/partitions (used in 2.4 kernels) differs from /proc/diskstats
(used in 2.6 kernels).
I include as attachment a patch that seems to fix this problem.
I have tested it on 2.4.20 (REDHAT 9) and 2.6.24.4 (Debian Sid) systems.
Thanks a lot for Collectd. It is a _very_ useful program.
Alessandro
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Hello everybody.
I have noticed that disk graphs are displayed by collection.cgi as
disk (71687000) instead of the correct disk name on 2.4.x linux
kernels.
The problem seems caused by the fact that the position of disk name of
/proc/partitions (used in 2.4 kernels) differs from /proc/diskstats
(used in 2.6 kernels).
I include as attachment a patch that seems to fix this problem.
I have tested it on 2.4.20 (REDHAT 9) and 2.6.24.4 (Debian Sid) systems.
Thanks a lot for Collectd. It is a _very_ useful program.
Alessandro
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/disk.c | diff | blob | history |