mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
add --snet-alarms option to suppress excess range alarms
Some users may not want to have alarms about ranges that are part of a shared-network, so allow them to suppress such. Requested-by: Frank Bulk <fbulk@mypremieronline.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
99b6af70ef
commit
7f3d553c7f
4 changed files with 17 additions and 1 deletions
|
|
@ -1000,6 +1000,9 @@ int output_alarming(void)
|
|||
|
||||
if (config.output_limit[1] & BIT1) {
|
||||
for (i = 0; i < num_ranges; i++) {
|
||||
if (config.snet_alarms && range_p->shared_net != shared_networks) {
|
||||
continue;
|
||||
}
|
||||
if (config.minsize < range_size) {
|
||||
perc = (float)(100 * range_p->count) / range_size;
|
||||
if (config.critical < perc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue