Thanks!

Hello,

thanks for the nice script. I use it to monitor a primary/primary device in a XenServer Cluster.

Here my solution to a bug I had using drbd82-8.2.6-1.el5.centos Package from the CentOS Repository:

The state in /proc/drbd is defined as “ro:” and not as “st:” as the script expects. I added the following lines to subroutine “parse_proc” within the while loop:

if (/^s?(d+):.* ro:(w+)//) {
$st{$1} = $2;
}

Works perfect! Best regards,

pbr