monitor systemd --failed
This commit is contained in:
parent
d4ccc3dce0
commit
21af9c8b62
1 changed files with 8 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue