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

Host can not be created if the group set in default_hostgroup does not exist #24

Closed
volter opened this Issue Dec 16, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@volter
Contributor

volter commented Dec 16, 2016

Even if you specify a group upon host creation, the existence of the default_group is still expected and the operation will fail if it doesn't exist.

@ghost

This comment has been minimized.

Collaborator

ghost commented Dec 20, 2016

Hello Volter

We still want to have the opportunity of defining a default hostgroup where the new host will get registered even if we define our own hostgroups in the create_host command.

I agree that not everybody needs this functionality. The solution we can implement is:

  • Use the default_hostgroup value when creating a new host only if it has a value defined in the configuration file and this value exists in Zabbix.

If default_hostgroup doesn't exist or it is not defined, the create_host command will exit with an error if we do not provide an existing hostgroup upon host creation.

Thanks for your report
regards,
Rafael Martinez Guerrero

@volter

This comment has been minimized.

Contributor

volter commented Dec 20, 2016

That sounds good!

rafaelma added a commit that referenced this issue Mar 21, 2017

@usit-gd usit-gd closed this Mar 21, 2017

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