Notifies nagios for non-configured alerts

This commit is contained in:
Simone Mainardi 2016-01-06 16:34:53 +01:00
parent 064be1b125
commit 36bcfa16a1
3 changed files with 11 additions and 4 deletions

View file

@ -749,9 +749,11 @@ else
to_save = true
value = tonumber(value)
if(value ~= nil) then
if(alerts ~= "") then alerts = alerts .. "," end
alerts = alerts .. k .. ";" .. operator .. ";" .. value
end
if(alerts ~= "") then alerts = alerts .. "," end
alerts = alerts .. k .. ";" .. operator .. ";" .. value
else
if ntop.isPro() then ntop.withdrawNagiosAlert(ifname_clean, tab, k, "alarm not installed") end
end
end
end