Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IML Open Source
icinga-checks
Commits
cd515d30
Commit
cd515d30
authored
Jul 08, 2022
by
Hahn Axel (hahn)
Browse files
remove pipe in status line
parent
d5849f29
Changes
1
Hide whitespace changes
Inline
Side-by-side
check_smartstatus
View file @
cd515d30
...
...
@@ -36,6 +36,7 @@
# 2021-01-22 v1.1 <axel.hahn@iml.unibe.ch> add status [no access]
# 2021-04-07 v1.2 <axel.hahn@iml.unibe.ch> update message if sudo smartctl -H fails
# 2021-10-28 v1.3 <axel.hahn@iml.unibe.ch> detect -d param for smartctl
# 2022-07-08 v1.4 <axel.hahn@iml.unibe.ch> remove pipe in status line
# ======================================================================
...
...
@@ -73,7 +74,7 @@ function checkDrive(){
sLabel
=
"^SMART.*Health"
sOK
=
"(ok|passed)"
sOut
=
"
$sOut
|
${
device
}
:"
sOut
=
"
$sOut
;
${
device
}
:"
ls
-ld
$device
>
/dev/null 2>&1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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