bundles/smartd: unit names have changed

This commit is contained in:
Franzi 2023-07-13 21:30:29 +02:00
parent 14ec3c0ee2
commit d0825a51ee
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 5 additions and 7 deletions

View file

@ -2,7 +2,7 @@ files = {
'/etc/smartd.conf': { '/etc/smartd.conf': {
'content_type': 'mako', 'content_type': 'mako',
'triggers': { 'triggers': {
'svc_systemd:smartd:reload', 'svc_systemd:smartmontools:reload',
}, },
}, },
'/usr/local/share/icinga/plugins/check_smart': { '/usr/local/share/icinga/plugins/check_smart': {
@ -15,7 +15,5 @@ files = {
} }
svc_systemd = { svc_systemd = {
'smartd': { 'smartmontools': {},
'enabled': None, # FIXME this is symlinked to smartmontools.service on bullseye
},
} }

View file

@ -3,12 +3,12 @@ defaults = {
'packages': { 'packages': {
'smartmontools': { 'smartmontools': {
'needed_by': { 'needed_by': {
'svc_systemd:smartd', 'svc_systemd:smartmontools',
}, },
}, },
'nvme-cli': { 'nvme-cli': {
'needed_by': { 'needed_by': {
'svc_systemd:smartd', 'svc_systemd:smartmontools',
}, },
}, },
}, },
@ -17,7 +17,7 @@ defaults = {
'smartd': { 'smartd': {
'services': { 'services': {
'SMARTD PROCESS': { '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',
}, },
}, },
}, },