Report the database version as extra information in check_udebug if
there are no errors or warnings.
Look for rxdebug in /usr/sbin and /usr/local/sbin since OpenAFS
installs it into sbindir by default.
+
+ Report the database version as extra information in check_udebug if
+ there are no errors or warnings.
warn "$0: cannot run udebug\n";
exit 3;
}
-my ($issync, $recovery, $synchost);
+my ($issync, $recovery, $synchost, $db);
while (<UDEBUG>) {
$issync = 1 if /^I am sync site /;
$recovery = 1 if /^Recovery state 1f/;
$synchost = 1 if /^Sync host \d+(\.\d+){3} was set /;
+ if (/Local db version is (\d+\.\d+)/) {
+ $db = "db version $1";
+ }
}
close UDEBUG;
if ($? != 0) {
print "UBIK CRITICAL - no sync site\n";
exit 2;
} else {
- print "UBIK OK\n";
+ print "UBIK OK - $db\n";
exit 0;
}