Script has a typo in it

The script works, kinda. You will need to replace line 126 with this:

exit $exitstatus

Without replacing the above line, the script will always report a status of OK to Nagios even though it may say WARNING or CRITICAL in the output. Other than that, the script seems to work great.