Fix ntop.postHTTPJsonData call in mattermost plugin

This commit is contained in:
Alfredo Cardigliano 2023-03-29 15:55:59 +02:00
parent 870da586ba
commit 807f9991b9
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ function mattermost.sendMattermost(message_body,settings)
if (body.message.alert_type ~= nil)
then
-- Only if a custom alert is thrown this script will be run
local post_rc = ntop.postHTTPJsonData(settings.mattermost_token, "", "", settings.url, body)
local post_rc = ntop.postHTTPJsonData("", "", settings.url, body, nil, settings.mattermost_token)
if post_rc
then
if post_rc.RESPONSE_CODE == 204