Quantcast
Channel: Veeam Support Knowledge Base
Viewing all articles
Browse latest Browse all 4362

Veeam Availabiltiy for Nutanix AHV 1.0 script for e-mail reporting

$
0
0

Challenge

Currently, Veeam Availability for Nutanix AHV 1.0 does not support Job Email Notifications. To resolve this until the feature is implemented, a script has been developed to provide Daily Email Reporting Functionality.

Solution

To setup the script, please use the following instructions:
  1. Download .zip archive from and transfer it to your Veeam Availability for Nutanix AHV backup proxy (sftp can be used as shown on this page of the User Guide)
  2. Install the script dependencies (make sure the backup proxy has an internet connection)
    • Login to the backup proxy shell
    • Run the following commands:
    $ sudo apt-get -y install python python-pip
    $ pip install aenum
    
  3. Unpack .zip archive using unzip command
    $ unzip <the_zip_file_with-script>
    
  4. Edit van-mail-notificator.py script file using your favorite text editor. Go to line 53 and change the necessary values where toMail value is an account which will receive backup job report. Save changes in the file.
    fromMail = "me@example.com"
    toMail = "me@example.com"
    fromServer = "localhost"
    
  5. Change file permissions, add executable permission:
    $ chmod +x van-mail-notificator.py
    
  6. Run the script
    $ ./van-mail-notificator.py
    
The script generates an email report with a summary for yesterday's job sessions.
User-added image
 

More Information

It is ideal to add the script to the cron scheduler. For example:
  1. Login to the backup proxy shell
  2. Issue the following command:
    $ crontab -e
    
  3. Insert the following line at the end of the file (assuming van-mail-notificator.py is located in /home/veeam location on a backup proxy)
    0 1 * * * /home/veeam/van-mail-notificator.py &>> /home/veeam/emailReporter.log
    
In this example, the script will be running every day at 1:00 A.M. See more information about cron here

[[DOWNLOAD|DOWNLOAD SCRIPT|https://download2.veeam.com/kb2965.zip]]

MD5SUM - 4026d945314bbf135311c01f501b0843
SHA1 - d59dcaf22602e9e26b647c2f91cfbb4f88abd8f0

Should you have any questions, contact Veeam Support.

Viewing all articles
Browse latest Browse all 4362

Trending Articles