Alert Transport API sending Static data not the actual result

Alert Transport API sending this result.
Hostname=$hostname&Uptime=$uptime_short&Message=$msg

How to fix this, kindly help.

I am using default Alert Template for data capture.

Alert Transport API is defined as,
API Method: POST
API URL: http://192.168.0.126/dashboard/test.php
Options: Hostname=$hostname Uptime=$uptime_short Message=$msg
headers: Content-Type=application/json
body:
Auth Username:
Auth Password: ••••••••

O/P file getting data as,

[2021-12-27 11:46:03]
Hostname=$hostname&Uptime=$uptime_short&Message=$msg

Options should be in blade template format:

Options: Hostname={{ $hostname }}

Thanks a lot, you made my day.

1 Like

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