Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
mirQ
bymirQ, December 29, 2014
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
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