do not show any service name for host errors

This commit is contained in:
Franzi 2024-02-13 14:16:24 +01:00
parent 55ae3fe2dd
commit d8d17f2ade
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -87,7 +87,7 @@ def regenerate():
services['services'].append({
'host': host['attrs']['display_name'],
'service': '-- HOST --',
'service': '',
'state': 2,
'type': int(host['attrs']['state_type']),
'output': limit_output_lines(host['attrs']['last_check_result']['output'].splitlines(), 3),