@cryptotaxi247 / netdata-1 / commits / 7b48097e0

feat(python.d/smartd_log): add 2nd job that tries to read from '/var/lib/smartmontools/' (#13188)

Ilya Mashchenko committed Jun 22, 2022 at 11:47 UTC 7b48097e0d87af876d7d805a8675c48925e3220b
2 files changed +11 -2
collectors/python.d.plugin/python_modules/bases/FrameworkServices/SimpleService.py
+3 -2
@@ -95,8 +95,9 @@ class SimpleService(PythonDLimitedLogger, object):
95
96 @property
97 def name(self):
98 - if self.job_name and self.job_name != self.module_name:
99 - return '_'.join([self.module_name, self.override_name or self.job_name])
98 + name = self.override_name or self.job_name
99 + if name and name != self.module_name:
100 + return '_'.join([self.module_name, name])
101 return self.module_name
102
103 def actual_name(self):
collectors/python.d.plugin/smartd_log/smartd_log.conf
+8
@@ -65,3 +65,11 @@
65 # exclude_disks: 'PATTERN1 PATTERN2' # space separated patterns. If the pattern is in the drive name, the module will not collect data for it.
66 #
67 # ----------------------------------------------------------------------
68 +
69 +custom:
70 + name: smartd_log
71 + log_path: '/var/log/smartd/'
72 +
73 +debian:
74 + name: smartd_log
75 + log_path: '/var/lib/smartmontools/'