mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Remove ICMP ratio alert and enable ratio alerts by default in 5mins
This commit is contained in:
parent
b3bdfcff32
commit
01c586119e
5 changed files with 33 additions and 15 deletions
|
|
@ -891,6 +891,23 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
-- @brief Get the default alert configuration value for the given check module
|
||||
-- and granularity.
|
||||
-- @param check_module a check_module returned by alerts_api.load_check_modules
|
||||
-- @param granularity_str the target granularity
|
||||
-- @return nil if there is not default value, the given value otherwise
|
||||
function alerts_api.getCheckModuleDefaultValue(check_module, granularity_str)
|
||||
if((check_module.default_values ~= nil) and (check_module.default_values[granularity_str] ~= nil)) then
|
||||
-- granularity specific default
|
||||
return(check_module.default_values[granularity_str])
|
||||
end
|
||||
|
||||
-- global default
|
||||
return(check_module.default_value)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- An alert check function which performs threshold checks of a value
|
||||
-- against a configured threshold and generates a threshold_cross alert
|
||||
-- if the value is above the threshold.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue