Compare commits
No commits in common. "21af9c8b625d2b74fbaae66f0039efb2adb00553" and "f3f624be1f849fb8bcfdf9d513dbe37c961c2047" have entirely different histories.
21af9c8b62
...
f3f624be1f
2 changed files with 2 additions and 10 deletions
|
@ -14,8 +14,7 @@
|
|||
if key.endswith('_interval'):
|
||||
return value
|
||||
else:
|
||||
escaped_value = value.replace('$', '$$').replace('"', '\\"')
|
||||
return f'"{escaped_value}"'
|
||||
return f'"{value}"'
|
||||
elif isinstance(value, (list, set)):
|
||||
return '[' + ', '.join(render_value(e) for e in sorted(value)) + ']'
|
||||
else:
|
||||
|
|
|
@ -3,14 +3,7 @@ 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