From b41c1bdaa1df92ee6c510ae6749d0524b88ef828 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 21 Nov 2014 10:48:25 +1100 Subject: ctdb-utils: Update Nagios code to use ctdb -X Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/utils/nagios/check_ctdb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 ctdb/utils/nagios/check_ctdb diff --git a/ctdb/utils/nagios/check_ctdb b/ctdb/utils/nagios/check_ctdb old mode 100644 new mode 100755 index 837a0a4539..7803f9a6c3 --- 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); -- cgit