More bug fixing and trying to get files with the right user.  Found out nagios was being set in the init scripts, which had to be fixed with sed.