Closed lazyfrosch closed 4 years ago
Hi,
Thanks for pointing this, seems this is why hostgroup wasn't working.
I'll update master ASAP and make a new release.
Patrick
Released 1.0.4b version correcting this. For your information, I am going to get rid of direct IDO queries and only use Icinga API in next versions. (related to issue #39 )
Keeping this open as I need to add hostgroups rules check in travis-ci to be sure it won't happen again.
Patrick
Version 1.0.4c should correct this : please tell me if all is ok now.
Closing issue. Reopen in case of related problems.
Get debug logs
Describe the bug
setupIDO
seems to be executed to be used by hostgroups, should only happen when an Icinga 2 API connection is configured.The culprit should be:
https://github.com/patrickpr/trapdirector/blob/ba4b05e5c09eadfd21ac319a3f989747b42a125e/library/Trapdirector/TrapsProcess/TrapConfig.php#L176
We should setup the IDO data regardless of if the API is configured here.
Your Environment:
icinga2 --version
): 2.11.4