Hi
I use Centreon IT-100 Edition, 22.10.5, on a standalone Linux Debian 11.
I would like to be able to use the stream connector to send my alerts in Opsgenie.
So I followed the documentation here: https://docs.centreon.com/docs/21.10/integrations/event-management/sc-opsgenie/ but nothing is sent to Opsgenie.
I double checked my configuration: parameter of the connector, api key value, permission in Opsgenie, access to api url, etc. but all is good.
I tried to execute the lua script and no output appeared (normal) so I think all is good for Lua in my system.
Here are the lua packages installed:
~$ apt list lua* --installed
Listing... Done
lua-curl/stable,now 0.3.0-9.2 amd64 [installed]
lua-socket/stable,now 3.0~rc1+git+ac3201d-4 amd64 [installed]
lua5.1/stable,now 5.1.5-8.1+b3 amd64 [installed]
Then I tried to elevate the logging level to debug for [core] and [lua] in central-broker-master configuration and I saw these messages (filtered) :
~$ sudo systemctl restart cbd
~$ tail -f /var/log/centreon-broker/central-broker-master.log | grep lua
...
[2023-02-14T00:23:44.101+01:00] [core] [info] modules: attempt to load module '/usr/share/centreon/lib/centreon-broker/70-lua.so'
[2023-02-14T00:23:44.102+01:00] [core] [debug] modules: checking initialization routine (symbol 'broker_module_init') in '/usr/share/centreon/lib/centreon-broker/70-lua.so'
[2023-02-14T00:23:44.104+01:00] [core] [debug] modules: checking deinitialization routine (symbol 'broker_module_deinit') in '/usr/share/centreon/lib/centreon-broker/70-lua.so'
[2023-02-14T00:23:44.104+01:00] [core] [debug] modules: checking module version (symbol 'broker_module_version') in '/usr/share/centreon/lib/centreon-broker/70-lua.so'
[2023-02-14T00:23:44.104+01:00] [core] [debug] modules: running initialization routine of '/usr/share/centreon/lib/centreon-broker/70-lua.so'
[2023-02-14T00:23:44.104+01:00] [lua] [info] lua: module for Centreon Broker 22.10.0
[2023-02-14T00:23:44.104+01:00] [core] [info] protocols: registering protocol ('lua' (layers 1-7)
[2023-02-14T00:23:47.073+01:00] [lua] [debug] lua: initializing the Lua virtual machine
[2023-02-14T00:23:47.074+01:00] [core] [error] failover: global error: lua: '/usr/share/centreon-broker/lua/opsgenie.lua' could not be compiled
[2023-02-14T00:24:02.077+01:00] [lua] [debug] lua: initializing the Lua virtual machine
[2023-02-14T00:24:02.078+01:00] [core] [error] failover: global error: lua: '/usr/share/centreon-broker/lua/opsgenie.lua' could not be compiled
...
I searched for a long time and found nothing about this.
Does anyone have any idea what the problem is?