Hi guys,
Please assist.
I am trying to create SMS alerts from our Solarwinds server to our mobile phones via GET/POST https request via a web server.
Whenever I simulate the query i get the error below.
My Trigger Action is as below.
@mwendaif you navigate to this log it after simulating the action, it should give you a little more information why it is failing. Typically in my experience its because the authentication is incorrect, or because the message is formatted incorrectly (either it is expecting a requirement and not receiving it)
i've used this site in the past to test POST actions https://reqbin.com/
C:\ProgramData\SolarWinds\Logs\Orion\ActionsExecution.log
Thanks for your response @christopher.t.jones123.
https://reqbin.com/ was indeed helpful. I run the simulation of what i want to alert on and it responded ok.
I however get the same error.
When i key in the actual values of Username, Password, Text Recipient and Message Data on the URL shared and then run it directly on a browser(not in reqbin.com), below is the output i get.
The URL has a local IP that points to the web server.
I am not sure if doing that is a valid way to test but could the highlighted returned message mean something.
I navigated to the log after simulation but i didn't get much from it.
Below is how our URL looks like. I populate the rellevant values in the highlighted fields before running it in Solarwinds.
@mwendaSorry, I gave you the wrong log earlier, in that same location there is another log named ActionsExecutionAlert.log which might give you more info on what is going wrong. If it doesn't display useful information you can adjust the logging level using the instructions on this link and obtain more information.
You can also use postman to replicate this outside of SolarWinds and get the exact syntax
@christopher.t.jones123, you were correct. It was an authentication issue caused by how i was keying in the credentials on the URL.
As shown below, currently I can successfully trigger an SMS to my mobile if i put the URL on my browser. However, i can't get it to work
However, i can't get it to work on Solarwinds.
I will review the logs and test it on postman as advised. thanks.
I had this exact same issue. There's something in your code that it doesn't like. Most likely one of the variables. What I found is that if the variable you are using doesn't apply to the node type, vendor, or model, then it will throw this error. It was a constant battle so I gave up. I started using a powershell action instead. You get much better versatility and control. You can still pass the variables in the alert message section of the alert.
@LatteLarry My code is code, had tested it before. I have noticed the other server is not taking https request. Request was successful in http.
Yet to receive the message though.
With my issue, I could test my code successfully every time in Postman. What I found was that certain variables didn't apply to certain device or hardware types and it was causing it to fail on certain nodes when executing the action. Using the built-in test function in the alert would work against certain nodes, and not others depending on their type. Maybe try removing all of the variables from your code and see if it executes successfully.Not sure if your problem and my problem are the same, but they sound very similar.