Netwatch send notification Teams

Hi, is there any script to send notification from netwatch when is server down to TEAMS? I have already TEAMS webhook link working …

I have found this but hot to implement to netwatch?

https://www.incredigeek.com/home/send-post-message-to-teams-from-mikrotik-routeros/
Thank you

The quide is working…so please delete or close.

Hi,

can someone tell me if the Teams Webhook posting isn’t maybe working for the last week or so on RouterOS? I didn’t do any updates…
Do i need to use a different script maybe ? I was using this https://www.incredigeek.com/home/send-post-message-to-teams-from-mikrotik-routeros/

Thanks,
MW

Why dont you ask at source → https://www.incredigeek.com/home/send-post-message-to-teams-from-mikrotik-routeros/

The guide is still working for me.Try to set it up again.

Can you please how do you have it exactly without the url of course?

You should use netwatch for this script.

I am using netwatch, please if you can, just copy paste your settings without the URL of the webhooknso that i can compare

@Rox169 can you please tell me which RouterOS are you using? I didn’t change or update anything, but it is not working anymore…
I have it like this..
Screenshot 2023-07-11 103134.png

Anyone please? Did Mikrotik had any updates which could mess this up maybe?

Any news?

Still working for me…try to set up from the begining

Thanks,

Can you send me which router OS you are using and screenshot of your working script please?

Thanks

I’ve reseted the device to default settings and it’s not working for 2 different tenants. Seems like Mikrotik changed something.

bump

Works for me, also.


http-method=post http-header-field="Content-Type: application/json" http-data="{\"text\": \"test\"}"

You didn’t really explain your problem in great detail, though.

Hi, thanks for the reply.

I have been using Mikrotik for years in SMB and also personally and I am fascinated with it from the start. Great work!

Now I have a small problem which is driving me nuts, on one HAP lite device which I use for monitoring network resources and using simple Netwatch scripts to send webhooks to Teams is not working.

This has been working for years and it stopped all of u sudden not sure why?

I am using RouterOS 6.49.8 on a RB951-2HnD, this is how I have the script set. The webhooks from other services is working on that particular Teams channel, so only from 2 different Mikrotik’s it is not.

Sending to Telegram works without any issues.

In the attach you can see the script itself.

Please let me know what could be the issue if you have any ideas?
Screenshot 2023-07-11 103134.png

can you please send me exact script which works for you - maybe it just a syntax error, but what bugs me I didn’t change anything, but maybe mikrotik did in some update.. you can blur the URL. Thanks

Run the command in the terminal and watch the output.

Hi,

is teams notification working for anyone? My just stopped working… it only says Couldn’t start task: cannot open file: permission denied

But I do not know why… I did not changed anything…any advice?