This script will not help you to see an issue unfortunately. It counts only audits, downloads and uploads.
The outlined problem there was a error with corrupted order, and as turned out, they could prevent to sent other orders:
We are thank you for showing a problem. This is why the Community feedback is so useful.
Another problem - your orders could expire, if your node was offline too long - the order will expire within 48 hours after agreement with the customer.
The other problem - storagenode stop sending orders on old version (actual for storagenodes with a manual updates instead of automatic):
and receive no ingress:
This is expected behavior though. Please, use an automatic updates instead of manual or make your manual updates to follow the rolling updates in time.