Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
float
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
float
Commits
a9168cfb
Commit
a9168cfb
authored
5 months ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Do not fail if no SMART self-tests were ever run
parent
f2972b7b
No related branches found
No related tags found
No related merge requests found
Pipeline
#82663
passed
5 months ago
Stage: docker_build
Stage: test
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/float-base/files/node-exporter-scripts/smartmon.py
+2
-1
2 additions, 1 deletion
roles/float-base/files/node-exporter-scripts/smartmon.py
with
2 additions
and
1 deletion
roles/float-base/files/node-exporter-scripts/smartmon.py
+
2
−
1
View file @
a9168cfb
...
@@ -193,7 +193,8 @@ def smartd_devices(config='/etc/smartd.conf'):
...
@@ -193,7 +193,8 @@ def smartd_devices(config='/etc/smartd.conf'):
def
collect_self_test_status
(
device
,
data
):
def
collect_self_test_status
(
device
,
data
):
"""
Extract SMART self-test status from logs.
"""
"""
Extract SMART self-test status from logs.
"""
if
'
ata_smart_self_test_log
'
not
in
data
:
if
'
ata_smart_self_test_log
'
not
in
data
or
\
'
table
'
not
in
data
[
'
ata_smart_self_test_log
'
][
'
standard
'
]:
return
return
# Attempt to extract the most recent self test status by type.
# Attempt to extract the most recent self test status by type.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment