/rhv-reporting

Trilio reporting tools for RHV backups

Primary LanguagePython

rhv-reporting

Trilio reporting tools for RHV backups

This procedure will create report files for each TrilioVault Workload and a single Overall report for each 24 hour period. This needs to be run on the TrilioVault Virtual Appliance.

NOTE: Before you begin - if you're using TrilioVault 3.7, you'll need to use the overall_report_3.7.py file INSTEAD OF overall_report.py

DIRECTIONS TO ENABLE REPORTS

  1. STEP 1- Copy reporting Python scripts to the /root/rhv-reporting directory

    cd /root git clone https://github.com/jon-tobin/rhv-reporting.git

  2. STEP 2- Create the directory structure that will house the backup reports

    mkdir -p /root/rhv-reporting/{overall_report,workload_report}

  3. STEP 3- Add execute permissions to Python files

    cd /root/rhv-reporting

    chmod +x overall_report.py workload_report.py or chmod +x overall_report_3.7.py workload_report.py

  4. STEP 4- Activate Python and enable reporting scripts

    /home/rhv/myansible/bin/activate

  5. STEP 5- Install configparser

    pip install configparser

  6. STEP 6- Create a Cron job to run both scripts at the same time each day. This script will run both reports at 12:01 AM every day of the year

    1. STEP 6a- Copy the coresponding crontab file from rhv-reporting folder

    cd /root/rhv-reporting

    cp reporting_cron /var/spool/cron/root or cp reporting_cron_3.7 /var/spool/cron/root

  7. STEP 7- Register crontab file for root

    crontab -e