monitor systemd --failed

This commit is contained in:
mwiegand 2022-09-05 16:26:16 +02:00
parent d4ccc3dce0
commit 21af9c8b62

View file

@ -3,7 +3,14 @@ defaults = {
'units': {},
'services': {},
'logind': {},
}
},
'monitoring': {
'services': {
'systemd': {
'vars.command': "systemctl --failed --no-legend | wc -l | grep -q '^0$' && exit 0 || systemctl --failed && exit 2",
},
},
},
}
@metadata_reactor.provides(