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:
Sami Kerola 2015-11-27 23:42:23 +00:00
parent 99b6af70ef
commit 7f3d553c7f
No known key found for this signature in database
GPG key ID: A9553245FDE9B739
4 changed files with 17 additions and 1 deletions

View file

@ -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)