You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: