Hi, I'm trying to do an initial setup via rest API. I added some things (timeperiods, contacts, contactgroups, hosttemplates, hosts and hostgroups).
I check the webapp and all the info is there, still not sure how it works but I guess it takes it from the .setup files.
Once I press Apply Changes it fails, the error is the following:
Creating hosts file local-nodes/empty-hostgroup/localhost.cfg
Creating hostgroups file local_hostgroups.cfg
ERROR: Entry for hostgroup, , is not defined in the
hostgroups file setup/local_hostgroups.setup. Aborting.
This is what I sent:
json=
{
"folder":"local",
"name":"linux-servers",
"alias":"Linux Servers",
"members":"localhost"
}
This is what I have in the local_hostgroups.setup file:
linux-servers,Linux Servers,,localhost,,,,
Any idea of what could be wrong? I don't know how to debug this.
Thank you