Various script fixed

Improved error message when scripts fail
This commit is contained in:
Luca Deri 2024-02-19 22:13:01 +01:00
parent a9396720d0
commit ab34197603
18 changed files with 1592 additions and 1552 deletions

View file

@ -33,4 +33,15 @@ function noHtml(s)
:gsub("^%s*(.-)%s*$", "%1"):gsub(' ', " ")
return unescape(cleaned)
end
end
-- ##############################################
function map_score_to_severity(score)
if score ~= nil then
return ntop.mapScoreToSeverity(score)
end
return ntop.mapScoreToSeverity(0)
end