OutputDiscardPercent Too Noisy
I noticed on some of my links the alarm for OutDiscardPercent was very noisy. It\'s setup to run an alarm when it is above 1%. It\'s calculated with...
if(eq(OutUcastPkts+OutBroadcastPkts+OutMulticastPkts, 0), 0, OutDiscards*100/(OutUcastPkts+OutBroadcastPkts+OutMulticastPkts+OutDiscards))
I\'d suggest that 1% is a fine alarm threshold for a link that is seeing normal traffic (i.e., a link that is in use and seeing >10 pps.) Below 10 pps is background noise (hello packets, keepalives, etc.) and doesn\'t need this kind of alarm.
Interestingly, the InputDiscardPercent has this check built in…
if(gt(InUcastPkts,10),InDiscards*100/(InBroadcastPkts+InUcastPkts+InMulticastPkts),0)
I suggest building this kind of check into Output Discard Percent…
if(gt(OutUcastPkts, 10), OutDiscards*100/(OutUcastPkts+OutBroadcastPkts+OutMulticastPkts+OutDiscards), 0)
While we’re at it, the InputDiscardPercent is missing a term in the denominator. It doesn\'t account for InDiscards, so the percentage is artificially inflated. Corrected it would like this..
if(gt(InUcastPkts,10),InDiscards*100/(InBroadcastPkts+InUcastPkts+InMulticastPkts+InDiscards),0)
These two fixes would reduce “false†alarms on low-volume links, correctly calculate the proper percentages and harmonize the two calculations so they match.