Open attiliobroglio opened 2 years ago
I agree with "attiliobroglio". I had the same problem and the only way was to change the formula. If you agree with this change, it might be a good idea to implement the change/fix in the next check_nwc_health release. Best regards ..
The issue also exists with Cisco C3750 switches Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 12.2(58)SE1
CRITICAL - interface GigabitEthernet3/0/5 (alias ***MPLS Router***) discards in:0.00% out:158.01% , [...]
Using the check_nwc_health (10.0.0.2), mode interface-health on a Fortinet (but also other vendor/device), I obtain weird values of percentage of discarded in /out packets. It exceeds the 100% (for example 5716%). Analyzing the device interface via SNMP I see that the interface is generating not so much traffic (delta=128), but a very high number of discarded packets (delta=7317), so I check the code. In my opinion, the formula used to compute this percentage is not correct, because it doesn't take into account the number of discarded packets in the denominator. So I fix the code in this way (line 73907).
Percentage of Percent of Discards In:
Percentage of Percent of Discards Out:
From your point of view, is this proposed fix a valid solution? Hope this helps