ntop / ntopng

Web-based Traffic and Security Network Traffic Monitoring
http://www.ntop.org
GNU General Public License v3.0
6.23k stars 654 forks source link

Notifications to Mattermost cause errors #8756

Open horned1 opened 2 days ago

horned1 commented 2 days ago

Environment:

What happened: Enabling notifications to Mattermost gives the following error in the logs every time a notification is sent. Notification reaches Mattermost and looks OK though. except of course that the errors themselves are posted to mattermost..

Before the notifications were setup I did not see these errors.

How did you reproduce it? Seen in the logs every time a notification is sent

Debug Information: ( /var/log/ntopng.log) [LuaEngine.cpp:702] WARNING: ...ipts/lua/modules/notifications/endpoints//mattermost.lua:76: attempt to index a boolean value (local 'post_rc') [/usr/share/ntopng/scripts/callbacks/5second/system/notifications.lua]

( systemctl status ntopng )

[LuaEngine.cpp:702] WARNING: ...re/ntopng/scripts/lua/modules/timeseries/drivers/rrd.lua:101: attempt to index a nil value (local 'schema') [/usr/share/ntopng/scripts/callbacks/5second/system/upload_timeseries.lua] [LuaEngine.cpp:702] WARNING: ...ipts/lua/modules/notifications/endpoints//mattermost.lua:76: attempt to index a boolean value (local 'post_rc') [/usr/share/ntopng/scripts/callbacks/5second/system/notifications.lua]

MatteoBiscosi commented 1 day ago

The issue should be fixed