Hi all,
installed IcingaDB today and currently trying to migrate all Icinaweb2 settings to Icingadbweb.
I am struggling with the icingadb/filter/objects.
In my Icinga config, I am using a host/service array for the teams, which should have access to it in icingaweb2, e.g.
template Host "TeamA" {
vars.icingaweb += [ "TeamA" ]
}
or
object Host "bla" {
[...]
vars.icingaweb += [ "TeamB", "TeamC" ]
vars.http["blubb"] = {
[...]
icingaweb += [ "TeamD" ]
}
}
The filter, which works for the team roles in the monitoring module is, e.g. for TeamA:
monitoring/filter/objects: _host_icingaweb=*\"TeamA\"*|_service_icingaweb=*\"TeamA\"*
same for TeamB and so on.
I tried to convert it to the new name scheme in icingawebdb:
icingadb/filter/objects: host.vars.icingaweb=*\"TeamA\"*|service.vars.icingaweb=*\"TeamA\"*
Tried several filter so far, but nothing is working. Can anybody give me a hint, how to migrate this?
Cheers,
Marcus