Any reason why I cannot send alerts to MS Teams with a webhook? I have it working to Slack but am not receiving the alerts to Teams. I saw the script but thought it would be easier to just use the Webhook.


Article Comments

Just to clarify, with Slack all I needed to do was set up an Execute HTTP Action with the webhook URL to send the Postdata to the channel.


Sep, 2017 - Permalink

Being that I did not hear from anyone I decided to go ahead and do the script. After much touch and go I think I am close. I am getting a script error Cannot process transformation on parameter 'sensorid'. Cannot convert parameter value "%sensorid" to type system.Int32.

Has anyone used this script? Does @Martina Wittmann still work at Paessler?


Sep, 2017 - Permalink

Hello bbazian,

Thank you for your knowledge base posts.

I assume that you already set-up a notification. The error message which you receive and which contains %sensorid appears to be the result of a test of the notification. Is this assumption correct?
If so, please trigger the actual notification because the test only provides the string %sensorid which can't be translated into the actual sensor ID (integer).

What's the result?

Best regards,
Sebastian


Sep, 2017 - Permalink

You are correct. I would add that info to the KB document. Other things I hit were the need for 32 bit Powershell to be in the path. The need for Powershell 3.0 and the need to set execution to allow the script to run.

All running now. Thanks.


Sep, 2017 - Permalink

Hello bbazian,

Thank you very much your information. I'm glad you found a solution for your request.

Best regards,
Sebastian


Sep, 2017 - Permalink