Added better handling of blacklisted hosts and alerts

Disabled MySQL DB for view interfaces
This commit is contained in:
Luca Deri 2016-12-19 16:57:14 +01:00
parent fd6bd7ef76
commit ee400ef10f
7 changed files with 36 additions and 20 deletions

View file

@ -441,6 +441,9 @@ for _key, _value in pairsByKeys(vals, funct) do
if value["localhost"] == true or value["systemhost"] == true then
print("<span class='label label-success'>Local</span>") else print("<span class='label label-default'>Remote</span>")
end
if value["is_blacklisted"] == true then
print(" <span class='label label-danger'>Blacklist</span>")
end
end
sent2rcvd = round((value["bytes.sent"] * 100) / (value["bytes.sent"]+value["bytes.rcvd"]), 0)