Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
As other users have posted here, there is a bug in this script when use drbd version 8.4.
The output field identifier for role of node has changed in drbd version 8.3. See: http://drbd.linbit.com/users-guide-8.3/ch-admin.html#id1369474
To use the script in version 8.3+, the role identifier needs to be changed from “st” to “ro”.
Apply this patch:
— check_drbd.orig 2014-12-29 18:03:37.000000000 +0100 +++ check_drbd 2014-12-29 18:03:59.000000000 +0100 @@ -217,7 +217,7 @@ if (/^s?(d+):.* cs:(w+)/) { $cs{$1} = $2; } – if (/^s?(d+):.* st:(w+)//) { + if (/^s?(d+):.* ro:(w+)//) { $st{$1} = $2; } if (/^s?(d+):.* ld:(w+)/) {
Can you fix it?
Regards mirQ