OK, I'll leave this alone for now. It runs to completion as-is, just not sure if it works with nagios. But yeah, if you don't mind at this point, neither do I :)