Telegram Notifications

Started by alexkgr, November 04, 2023, 07:32:49 AM

Previous topic - Next topic


December 15, 2023, 11:47:49 PM #17 Last Edit: December 15, 2023, 11:53:30 PM by sammyke007
Would be nice...

This works for OPNarp by the way:
https://mephiz.sh/2023/06/10/opnarp-telegram

@franco @mimugmail
Hi!
so what's the plan? )
integrate in core? make it a plugin and call it with the exec action with the script path?
Or is this only for Michael's repo for now?


Quote from: Fright on December 16, 2023, 07:57:18 PM
@franco @mimugmail
Hi!
so what's the plan? )
integrate in core? make it a plugin and call it with the exec action with the script path?
Or is this only for Michael's repo for now?

Best would start with a plugin, do you want to work on it? :)

only if you haven't started yet  :)
a simple script seems to work. wanted to try it with the markdownv2 markup allowed. and add a bit of logging


got it, thanks )
skeleton is ready, some polishing needed

i didn't understand.

Someone has made a script that it is working?
do you want to test it?

script is not standalone. it uses params from gui\config.
Sure, i'll ask for testing when everything is ready, thanks

@alexkgr Hi
if you are ready to help with testing, take a look please
https://github.com/kulikov-a/opn-monit2t
pkg add https://github.com/kulikov-a/opn-monit2t/raw/main/work/pkg/os-monit2t-1.0.pkg

@Fright

i will check the next days and report.
thank you very much

Quote from: Fright on December 19, 2023, 06:25:36 PM
@alexkgr Hi
if you are ready to help with testing, take a look please
https://github.com/kulikov-a/opn-monit2t
pkg add https://github.com/kulikov-a/opn-monit2t/raw/main/work/pkg/os-monit2t-1.0.pkg


i am really new to opnsense.
can you help me how to setup it with monit and have notifications?

I have entered telegram token and chat id and i received the test message.
But i don't know what to with this "In order to use this plugin, "Execute" Action should be set for Service Test and "/usr/local/opnsense/scripts/OPNsense/Monit2T/monit2t.sh" as a path. "

for example, if you use example 3 from docs
https://docs.opnsense.org/manual/monit.html#example-3
it will look like in the picture attached