fix showing acknowledgements for services

This commit is contained in:
Franzi 2023-03-06 06:49:41 +01:00
parent 0773db6933
commit 16c4f37935
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -111,7 +111,7 @@ def regenerate():
if not CONFIG['show_ack']:
continue
ack = 'ACKNOWLEDGED'
ack = '[ACK] '
else:
ack = ''
@ -120,7 +120,7 @@ def regenerate():
services['services'].append({
'host': svc['attrs']['host_name'],
'service': svc['attrs']['display_name'],
'service': ack + svc['attrs']['display_name'],
'state': int(svc['attrs']['state']),
'type': int(svc['attrs']['state_type']),
'output': limit_output_lines(svc['attrs']['last_check_result']['output'].splitlines()),