From d0825a51ee84c65df2b880a65b2ae28ead4ecd03 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 13 Jul 2023 21:30:29 +0200 Subject: [PATCH] bundles/smartd: unit names have changed --- bundles/smartd/items.py | 6 ++---- bundles/smartd/metadata.py | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/bundles/smartd/items.py b/bundles/smartd/items.py index 540a6a9..e18270f 100644 --- a/bundles/smartd/items.py +++ b/bundles/smartd/items.py @@ -2,7 +2,7 @@ files = { '/etc/smartd.conf': { 'content_type': 'mako', 'triggers': { - 'svc_systemd:smartd:reload', + 'svc_systemd:smartmontools:reload', }, }, '/usr/local/share/icinga/plugins/check_smart': { @@ -15,7 +15,5 @@ files = { } svc_systemd = { - 'smartd': { - 'enabled': None, # FIXME this is symlinked to smartmontools.service on bullseye - }, + 'smartmontools': {}, } diff --git a/bundles/smartd/metadata.py b/bundles/smartd/metadata.py index 63af59a..fca64eb 100644 --- a/bundles/smartd/metadata.py +++ b/bundles/smartd/metadata.py @@ -3,12 +3,12 @@ defaults = { 'packages': { 'smartmontools': { 'needed_by': { - 'svc_systemd:smartd', + 'svc_systemd:smartmontools', }, }, 'nvme-cli': { 'needed_by': { - 'svc_systemd:smartd', + 'svc_systemd:smartmontools', }, }, }, @@ -17,7 +17,7 @@ defaults = { 'smartd': { 'services': { 'SMARTD PROCESS': { - 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit smartd', + 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit smartmontools', }, }, },