mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Fix ntop.postHTTPJsonData call in mattermost plugin
This commit is contained in:
parent
870da586ba
commit
807f9991b9
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue