mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added user agent in HTTP pages (including alerts)
This commit is contained in:
parent
f3c1198172
commit
d0a39b85ef
6 changed files with 48 additions and 24 deletions
|
|
@ -4747,6 +4747,12 @@ function addHTTPInfoToAlertDescr(msg, alert_json)
|
|||
alert_json["proto"]["http"]["last_return_code"])
|
||||
end
|
||||
|
||||
if alert_json["proto"]["http"]["last_user_agent"] then
|
||||
msg = msg .. string.format(" [%s: %s]",
|
||||
i18n("last_user_agent"),
|
||||
alert_json["proto"]["http"]["last_user_agent"])
|
||||
end
|
||||
|
||||
if alert_json["proto"]["http"]["last_url"] then
|
||||
msg = msg .. string.format(" [%s: %s]",
|
||||
i18n("last_url"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue