add option to hide SOFT checks
This commit is contained in:
parent
2afef02b2c
commit
37220e4f2d
2 changed files with 21 additions and 8 deletions
6
service
6
service
|
@ -61,6 +61,9 @@ def regenerate():
|
|||
else:
|
||||
ack = ''
|
||||
|
||||
if not CONFIG['show_soft'] and int(host['attrs']['state_type']) == 0:
|
||||
continue
|
||||
|
||||
services['services'].append({
|
||||
'host': host['attrs']['display_name'],
|
||||
'service': '-- HOST --',
|
||||
|
@ -89,6 +92,9 @@ def regenerate():
|
|||
else:
|
||||
ack = ''
|
||||
|
||||
if not CONFIG['show_soft'] and int(svc['attrs']['state_type']) == 0:
|
||||
continue
|
||||
|
||||
services['services'].append({
|
||||
'host': svc['attrs']['host_name'],
|
||||
'service': svc['attrs']['display_name'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue