call api for zabbix agent

122 views
Skip to first unread message

Philippe Delalande

unread,
Jul 27, 2023, 5:10:16 AM7/27/23
to bacularis
Hello marcin,

I hope you are well,
I am currently using oauth2 authentication with bacularis on port 9097. I want to do monitoring with zabbix by calling the bacularis API. Unfortunately the zabbix agent does not support oauth2. I would therefore like to configure a second bacularis api with basic authentication on port 9098 for example. I have tried on the same server to duplicate directories and configure my nginx on port 9098 without success.  Even if the API is configured on a different port, as soon as I disable oauth2 on the 9098 api I no longer have access to the API on 9097.
I would like to know if this is possible and if so, how?
Sincerely Philippe DELALANDE

Translated with www.DeepL.com/Translator (free version)

Marcin Haba

unread,
Jul 27, 2023, 10:40:04 PM7/27/23
to Philippe Delalande, bacularis
Hello Philippe,

I am pretty fine. Thanks. I hope you are doing OK too.

Thanks for reporting this problem. If you copy Bacularis directory
with a new web server config and port then it might be good to clear
cached Bacularis runtime config in the new Bacularis directory:

rm -rf protected/runtime/*

Also if besides of Bacularis API you use also Bacularis Web then after
copying the directory and setting up the second instance of the Web,
you need to go to [Bacularis Web Menu] => [Security] => [API hosts]
and there switch the Bacularis Web to a new port because otherwise it
will still use the original API host with old port.

Please let us know if it helped.

Thanks. Good luck.

Best regards,
Marcin Haba (gani)
> --
> You received this message because you are subscribed to the Google Groups "bacularis" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bacularis+...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/bacularis/af400b08-2d93-4625-8fb8-815aa66982ban%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus

Philippe Delalande

unread,
Aug 1, 2023, 2:42:25 AM8/1/23
to Marcin Haba, bacularis
Hello Marcin

sorry for the late reply, the solution you gave me works perfectly. once again, thank you very much for everything.

my sincerest greetings
Philippe Delalande

Marcin Haba

unread,
Aug 1, 2023, 3:53:41 PM8/1/23
to Philippe Delalande, bacularis
Hello Philippe,

Great to hear. Thanks for letting us know.

Best regards,
Marcin Haba (gani)

On Tue, 1 Aug 2023 at 08:42, Philippe Delalande

Study It

unread,
May 20, 2024, 7:10:36 AM5/20/24
to bacularis
Hello,
I wanted to start a new conversation about Bacularis and Zabbix, but i searched before to see if anyone starded one already.
No point of creating a new one, if this is already started. I have a Zabbix up and running and Bacularis also
Wanted to know how you managed to get bacularis integraded into zabbix
Thanks in advance,
Best regards

Marcin Haba

unread,
May 22, 2024, 8:34:30 PM5/22/24
to Study It, bacularis
Hello Study It,

Thanks for reusing this thread.

I don't know if I am able to help because I have never used Zabbix but I imagine that to make it working with Bacularis, you need to define something on the Zabbix side like a destination Bacularis address that will be checked. Probably Bacularis API endpoints can be a good candidate for that.

Here you can find the Bacularis API endpoint reference:

https://bacularis.app/api/


Good luck.

Best regards,
Marcin Haba (gani)

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages