---
title: "Network plugin - How is percentRecvErrors computed"
description: "PercentRecvErrors is calculated by dividing error packets by total received packets and multiplying by 100. This uses network interface data, such as Linux ifconfig command output, to determine error percentage."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004019185-geneos-network-plugin-how-is-percentrecverrors-computed/index.html"
---
**How is percentRecvErrors computed?**  The percentRecvErrors can be computed by dividing the total number of error packets by all packets (total number of correct and error packets). The quotient is then multiplied by 100 to get the percentage.  percentRecvErrors =  (recvErrorPackets/allPackets) \* 100

Additional Information  In Linux, these values may be seen by issuing the "ifconfig -a" command.

A sample output of this command is shown below.  eth0 Link encap:Ethernet HWaddr 00:0C:29:C1:FA:53  inet addr:192.168.100.119 Bcast:192.168.100.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fec1:fa53/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:31213822 errors:0 dropped:0 overruns:0 frame:0 ##This is the line with the details we need. TX packets:5602194 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4069977030 (3.7 GiB) TX bytes:903913774 (862.0 MiB)  Using the details above, percentRecvErrors is calculated as follows:  recvErrorPackets = 0 (errors:0) recvOkPackets = 31213822 (packets:31213822) allPackets = recvErrorPackets + recvOkPackets = 0 + 31213822 = 31213822 percentRecvErrors = 100 \* (recvErrorPackets/allPackets) = 100 \* (0/31213822) = 0 --> 0%


