Interface status "Total Interrupts" display is non-functional
Plus Target Version:
The interface status page
status_interfaces.php is supposed to print a section called "Total Interrupts" at the bottom of each physical interface, but it does not.
The handling of that data is broken in a few ways:
- The result is unset before it tries to display the text, which means it will never show up on the page.
- Even if the above is corrected, the results are wrong for interfaces with multiple queues.
- The way the statistics are obtained is inefficient (running
vmstat -iseparately for every interface), it should gather the stats just once using something closer to
vmstat -i --libxo=jsonat the top and then parse/sum the data from the interpreted result. This will be much more efficient and accurate than relying on the current methods.
Updated by Viktor Gurov almost 2 years ago