Commit 10649589 authored by ale's avatar ale

Add the possibility to disable smartmon in an emergency

parent c0875488
Pipeline #6852 failed with stages
in 12 minutes and 27 seconds
......@@ -6,9 +6,12 @@ import datetime
import decimal
import itertools
import re
import os
import shlex
import subprocess
GUARD_FILE = '/etc/smartmon.disable'
device_info_re = re.compile(r'^(?P<k>[^:]+?)(?:(?:\sis|):)\s*(?P<v>.*)$')
ata_error_count_re = re.compile(
......@@ -386,6 +389,10 @@ def collect_disks_smart_metrics():
def main():
# Guard file to stop this automation in an emergency.
if os.path.exists(GUARD_FILE):
version_metric = Metric('smartctl_version', {
'version': smart_ctl_version()
}, True)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment