JSON alert template for FreshService

Hello everyone! I’m trying to use Libre for monitoring and sending JSON messages to FreshService ITOM system. I have tried to construct several JSON payloads and I’m still getting bad data in Fresh. I, of course, don’t have any but the latest version of the payload and it responds nothing useful at all
:slight_smile:

body: {
"Severity" : "{ $alert->severity }",
"ID" : "{$alert->service_id}",
"Rule" : "($alert->name)",
"Rule2" : "{ $alert->name }",
"Time elapsed" : "{ $alert->elapsed }",
"Timestamp" : "{ $alert->timestamp }",
"Unique-ID" : "{ $alert->uid }",
"Service" : "{ $alert->service_ip }",
"Description" : "{ $alert->service_desc }",
"Message" : "{ $alert->service_message }"
}

Any ideas where i’m messing this up?

That isn’t valid json :slight_smile:

You are missing a { and a }

{ body: {

} }

Also, for the replacements it is double curly: {{ $alert->severity }}

Thank you so much! Testing this now!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.