Currently I have a fully automated RHEL auditing script that works fine (see attached).
However, additional scope aspects have been added to the original project and need to be incorporated into the script.
Once the script has completed, it needs to take a 'diff' comparison (if available) of a previous audit run of that server and the one that just completed, then create another file (i.e. RHEL-hostname.datestamp.au
dit.diff) in the same directory. Once diff comparison is completed, zip up 'diff' result file and embed/encrypt the zip file (i.e. zip -P passwd filename.zip), then e-mail the zip file to a selected list of users.
After a number of trail and error attempts outside of the large script, I determined it would be easier to do each server diff individually (since the data is readily available) and give a separate report on each hostname rather than try to group them all together and compile a huge diff listing with all the servers embedded in the report document.