Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Error on network parents #663

Open
stestaz opened this issue Apr 3, 2020 · 2 comments
Open

Key Error on network parents #663

stestaz opened this issue Apr 3, 2020 · 2 comments
Assignees

Comments

@stestaz
Copy link

stestaz commented Apr 3, 2020

Hi,
I've an installation with more than 500 hosts, and when 500 hosts is exceeded the Network Parents section explode with this error

Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/adagios/views.py", line 43, in wrapper
result = view_func(request, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/adagios/status/views.py", line 109, in network_parents
i['child_hosts'].append(host_dict[x])
KeyError: u'xxx-ce-vg02'

the KeyError is the name of an host but this host is correctly configured and if I delete this host the error will appear with a new one.

This is a bug so please don't reply "maybe the host is missing"

@gardart gardart self-assigned this Apr 3, 2020
@gardart
Copy link
Contributor

gardart commented Apr 3, 2020

thanks @palli I will update the documentation regarding the livestatus limit.

@tjyang
Copy link

tjyang commented May 29, 2020

  • Same issue here for instance over 500 hosts.

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/adagios/views.py", line 43, in wrapper
result = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/adagios/status/views.py", line 108, in network_parents
i['child_hosts'].append(host_dict[x])
KeyError: u'hostame.xxx.xxx'

  • live status and OS info.

check-mk-livestatus-1.4.0p31-2.el7.x86_64
CentOS Linux release 7.7.1908 (Core)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants