Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CSD
public
zabbix-templates
Commits
8c9e973a
Commit
8c9e973a
authored
Feb 27, 2018
by
Fulvio Galeazzi
Browse files
2018-02-27: FG; Do not leave temporary files around.
parent
ec120dbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dell_MD38XX/Script/zbxDellStorageDeviceDiscover.sh
View file @
8c9e973a
...
...
@@ -182,9 +182,9 @@ if [[ $RET_VAL = 0 ]]; then
firstIter
=
1
for
((
idx
=
0
;
idx<
${#
raidNameArray
[@]
}
;
idx++
))
;
do
raidList
=
"
${
raidCtrlArray2
[
$idx
]
}
"
STATUSFILE
=
`
mktemp
`
if
[[
$SHOWDEV
=
1
]]
;
then
STATUSFILE
=
`
mktemp
`
GET_CMD
=
"
$PATHBIN
$raidList
$CHECKSYNTAX
-c 'set session performanceMonitorInterval=3 performanceMonitorIterations=1 ; save storageArray performanceStats file=
\"
$STATUSFILE
\"
;' > /dev/null"
if
[[
$DEBUG
=
1
]]
;
then
echo
-n
-e
"
\n
########################################
\n
"
...
...
Dell_MD38XX/Script/zbxDellStorageStatusCheck.sh
View file @
8c9e973a
...
...
@@ -366,7 +366,7 @@ fi
# Housekeeping
rm
-f
$STATUSFILE
#
rm -f $SENDERFILE
rm
-f
$SENDERFILE
if
[[
-n
$tmpCONFIGFILE
]]
;
then
rm
-f
$CONFIGFILE
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment