mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Notifies nagios for non-configured alerts
This commit is contained in:
parent
064be1b125
commit
36bcfa16a1
3 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue