Is it possible to send data in JSON format from Solarwinds to other third party applications using POST method?
serena aLTeReGo Any help please.
Yes, this is possible. See the following article on Teams integration for example:
Microsoft Teams Integration with Orion Alerts
Thanks Terry for the link provided. But I need to send the data in JSON format(missed to mention the same in the post, updated the same now). Using that alert action I don't think its possible.
Is there any other option possible.
You could create alert actions that run an external program, such as powershell.exe, then use PowerShell's Invoke-WebRequest cmdlet to POST the data. The same concept would work with curl.
Yes, you can...IF you are referring to alerts.
Example of sending data to Splunk API:
{
"event":[{
"Status": "Node Down",
"Severity": "${N=Alerting;M=Severity}",
"Time": "${N=Alerting;M=AlertTriggerTime;F=DateTime}",
"Device": "${N=SwisEntity;M=DisplayName}",
"URL": "${N=SwisEntity;M=DetailsUrl}",
"IP": "${N=SwisEntity;M=IP_Address}",
"Street": "${N=SwisEntity;M=CustomProperties.Address}",
"City": "${N=SwisEntity;M=CustomProperties.City}",
"State": "${N=SwisEntity;M=CustomProperties.State}",
"Zip": "${N=SwisEntity;M=CustomProperties.Zip_Code}",
"Time Zone": "${N=SwisEntity;M=CustomProperties.TZ}"
}]
}
deverts wrote:Yes, you can...IF you are referring to alerts.
deverts wrote:
Yes, but this sends it via an HTTP[S] post message and not as a JSON object. Different, right?
I tried this, but its not sending data in JSON format.
In my case testing using the slack webhook and the { this is a test } worked fine. When I try to add any variables it fails instantly.