mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixes: login, syslog plugin, more
This commit is contained in:
parent
d4984df8ae
commit
9453c058db
4 changed files with 13 additions and 4 deletions
|
|
@ -101,7 +101,14 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function syslog.runTest(recipient)
|
||||
local success = syslog.sendMessage({}, "info", recipient.endpoint_conf.endpoint_conf.syslog_alert_format)
|
||||
local now = os.time()
|
||||
local notif = {
|
||||
alert_tstamp = now,
|
||||
alert_entity = "test",
|
||||
}
|
||||
|
||||
local success = syslog.sendMessage(notif, "info", recipient.endpoint_conf.endpoint_conf.syslog_alert_format)
|
||||
|
||||
local message_info = i18n("prefs.syslog_sent_successfully")
|
||||
return success, message_info
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue