projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add luchesi
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
checks
/
dsa-check-raid-aacraid
diff --git
a/dsa-nagios-checks/checks/dsa-check-raid-aacraid
b/dsa-nagios-checks/checks/dsa-check-raid-aacraid
index
0b82c47
..
40e9a25
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-raid-aacraid
+++ b/
dsa-nagios-checks/checks/dsa-check-raid-aacraid
@@
-59,7
+59,7
@@
sub record($) {
}
# arcconf puts crap into a $PWD/UcliEvt.log file.
}
# arcconf puts crap into a $PWD/UcliEvt.log file.
-my $dir = tempdir( "check-aacraid-XXXXXXX", CLEANUP => 1 );
+my $dir = tempdir( "
/tmp/
check-aacraid-XXXXXXX", CLEANUP => 1 );
chdir ($dir) or die ("Cannot chdir $dir: $!\n");
my $ctrl = 1;
chdir ($dir) or die ("Cannot chdir $dir: $!\n");
my $ctrl = 1;
@@
-136,5
+136,8
@@
while ($ctrl <= $numcontrollers) {
$ctrl++;
};
$ctrl++;
};
+if ( -e 'UcliEvt.log' ) {
+ unlink('UcliEvt.log') or die ("Cannot unlink UcliEvt.log: $!\n");
+}
print "$EXITCODE: ", join(" --- ", @resultstr), "\n";
exit $CODE{$EXITCODE};
print "$EXITCODE: ", join(" --- ", @resultstr), "\n";
exit $CODE{$EXITCODE};