Alignak-monitoring-contrib / alignak-module-backend

Alignak modules (arbiter, broker, scheduler) for the backend
GNU Affero General Public License v3.0
0 stars 2 forks source link

hostgroups list from service #70

Closed mohierf closed 7 years ago

mohierf commented 7 years ago

As initially logged here: https://github.com/Alignak-monitoring-contrib/alignak-backend-import/issues/65 the problem is located in the arbiter backendmodule .


When trying to import services and hostgroups from nagios flatfiles. The alignak arbiter seems to crash after a restart with this error:

INFO:alignak.objects.config:Configuration in service::SSH is incorrect; from: alignak-backend
INFO:alignak.objects.config:the hostgroup '[u'58c8743df7923b007530505d']' is unknown

The services and hostgroups are defined with this syntax:

define service {
use                     generic-service
hostgroup_name          VPS
service_description     SSH
check_command           check_ssh
}

define hostgroup {
hostgroup_name      VPS
alias               VPS Servers
}

In the backend database, VPS hostgroup seems to exists and the ID 58c8743df7923b007530505d too. In fact it seems that arbiter mix hostgroup name and hostgroup id when trying to read configuration.

Any idea about it ?