Using the check_nwc_health (10.0.0.2), mode interface-health, I obtain weird values of percentage of errors in /out. It exceeds the 100% (for example 165%).
In my opinion, the formula used to compute this percentage is not correct, because it doesn't take into account the number of errors in the denominator. So I fix the code in this way:
Using the check_nwc_health (10.0.0.2), mode interface-health, I obtain weird values of percentage of errors in /out. It exceeds the 100% (for example 165%). In my opinion, the formula used to compute this percentage is not correct, because it doesn't take into account the number of errors in the denominator. So I fix the code in this way:
Percentage of Percent of Errors In:
original: 100 $self->{delta_ifInErrors} / $self->{delta_ifInPkts}; my fix: 100 $self->{delta_ifInErrors} / ($self->{delta_ifInErrors} + $self->{delta_ifInPkts});
Percentage of Percent of Errors Out:
original: 100 $self->{delta_ifOutErrors} / $self->{delta_ifOutPkts}; my fix: 100 $self->{delta_ifOutErrors} / ($self->{delta_ifOutErrors} + $self->{delta_ifOutPkts});
If you are agree with me, I propose a fix for the next release. Hope this helps