Stop piping grep into five other commands. It already handles most of that.
Most Linux problems aren't complex. They're poorly observed. These are the exact commands that I run before troubleshooting ...