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

Excessive/erronous host group creation #1

Open
paalbra opened this issue Jun 9, 2020 · 0 comments
Open

Excessive/erronous host group creation #1

paalbra opened this issue Jun 9, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@paalbra
Copy link
Contributor

paalbra commented Jun 9, 2020

If multiple hosts are missing a host group and this host group is missing from Zabbix only the first creation of the host group will be successful. The others might lead to loads of error messages.

Maybe updating zabbix_hostgroups somewhere here does the trick:

zabbix_hostgroup_id = zabbix_hostgroups.get(hostgroup_name, None)
if not zabbix_hostgroup_id:
# The hostgroup doesn't exist. We need to create it.
zabbix_hostgroup_id = self.create_hostgroup(hostgroup_name)

@paalbra paalbra added bug Something isn't working enhancement New feature or request labels Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant