summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-11-21 10:48:25 +1100
committerMartin Schwenke <martins@samba.org>2014-12-05 21:02:40 +0100
commitb41c1bdaa1df92ee6c510ae6749d0524b88ef828 (patch)
tree7f59d859046448197379b468f751ce8a1e33b238 /ctdb
parent0d61b6137306ee0eab2981e3c213023c332da550 (diff)
downloadsamba-b41c1bdaa1df92ee6c510ae6749d0524b88ef828.tar.gz
samba-b41c1bdaa1df92ee6c510ae6749d0524b88ef828.tar.xz
samba-b41c1bdaa1df92ee6c510ae6749d0524b88ef828.zip
ctdb-utils: Update Nagios code to use ctdb -X
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-x[-rw-r--r--]ctdb/utils/nagios/check_ctdb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/utils/nagios/check_ctdb b/ctdb/utils/nagios/check_ctdb
index 837a0a4539..7803f9a6c3 100644..100755
--- a/ctdb/utils/nagios/check_ctdb
+++ b/ctdb/utils/nagios/check_ctdb
@@ -177,7 +177,7 @@ sub safe_close_command {
if ($info eq "scriptstatus") {
$result = OK;
- safe_open_command('ctdb', '-Y', 'scriptstatus');
+ safe_open_command('ctdb', '-X', 'scriptstatus');
if ($result == OK) {
my $script_count = 0;
my $ok_script_count = 0;
@@ -187,7 +187,7 @@ if ($info eq "scriptstatus") {
next if $. == 1; # Header
$script_count++;
chop;
- my ($col0, $type, $name, $code, $status, $start, $end, @error) = split(":");
+ my ($col0, $type, $name, $code, $status, $start, $end, @error) = split("|");
if ($col0 ne '') {
# Old version, before 30 Aug 2011 and commit a779d83a6213
($type, $name, $code, $status, $start, $end, @error) = ($col0, $type, $name, $code, $status, $start, $end, @error);