mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixed error while displaying engaged alerts
This commit is contained in:
parent
07bf17b3f7
commit
a745c2f38e
1 changed files with 3 additions and 3 deletions
|
|
@ -51,14 +51,14 @@ function alert_contacted_peers.format(ifid, alert, alert_type_params)
|
|||
host = host,
|
||||
host_category = host_category
|
||||
}
|
||||
|
||||
if alert_type_params.value_cli > 0 then
|
||||
|
||||
if((type(alert_type_params.value_cli) == number) and (alert_type_params.value_cli > 0)) then
|
||||
msg_params.value_cli = alert_type_params.value_cli
|
||||
msg_params.dyn_threshold_cli = alert_type_params.dyn_threshold_cli
|
||||
triggered_as_cli = true
|
||||
end
|
||||
|
||||
if alert_type_params.value_srv > 0 then
|
||||
if((type(alert_type_params.value_srv) == number) and (alert_type_params.value_srv > 0)) then
|
||||
msg_params.value_srv = alert_type_params.value_srv
|
||||
msg_params.dyn_threshold_srv = alert_type_params.dyn_threshold_srv
|
||||
triggered_as_srv = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue