diff --git a/lib/disk.pm b/lib/disk.pm index f74936f..bba99b9 100644 --- a/lib/disk.pm +++ b/lib/disk.pm @@ -880,6 +880,17 @@ sub disk_cgi { if($title) { push(@output, " \n"); push(@output, " \n"); + + if($disk->{desc}->{$k}) { + push(@output, " \n"); + push(@output, " \n"); + push(@output, " \n"); + push(@output, " \n"); + push(@output, "   $disk->{desc}->{$k}\n"); + push(@output, " \n"); + push(@output, " \n"); + push(@output, " \n"); + } push(@output, main::graph_footer()); } $e++; diff --git a/man/man5/monitorix.conf.5 b/man/man5/monitorix.conf.5 index 45c9e36..1ceb4e1 100644 --- a/man/man5/monitorix.conf.5 +++ b/man/man5/monitorix.conf.5 @@ -1326,6 +1326,8 @@ If you see good results as above, you can add it to the group 0 like this: .br 0 = /dev/sda, /dev/disk/by-path/pci-0000:00:11.0-scsi-0:0:0:0 +.br + 1 = /dev/sdc, /dev/sdd .br .RE @@ -1348,6 +1350,21 @@ This list complements the \fBlist\fP option. It basically allows you to change t .RE .RE .P +.BI desc +.RS +This list complements the \fBlist\fP option. It basically allows you to include a title for every group of disk drives. The title will appear in the bottom of the graph. +.P +.RS + +.br + 0 = Local disks +.br + 1 = Remote disks +.br + +.RE +.RE +.P .BI realloc_enabled .RS This section enables or disables one of the alert capabilities for this graph; the alert for the number of reallocated sectors in disk. It works as follows: diff --git a/monitorix.conf b/monitorix.conf index e64af6b..878e6bf 100644 --- a/monitorix.conf +++ b/monitorix.conf @@ -309,6 +309,8 @@ secure_log_date_format = %b %e 0 = /dev/sda, /dev/sdb, /dev/sdc + + realloc_enabled = n realloc_timeintvl = 0