1-800-691-1991 | 9am - 8pm ET
EN

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

KB ID: 2965
Product: Veeam Backup for Nutanix AHV
Version: 1.x
Published: 2019-06-17
Last Modified: 2020-08-13
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Policy.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please try again later.

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 47 and change the following values with your details.
    fromMail = "me@example.com"
    toMail = "me@example.com"
    fromServer = "localhost"
    
    Where toMail value is an account that will receive a backup job report. Save changes in the file.
    If you want to send the report to multiple recipients, separate addresses with , character:
    fromMail = "me@example.com"
    toMail = "recipient-x@example.com,recipient-y@example.com,recipient-z@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 SCRIPT



MD5SUM - 20fcd63153f0e4e864640abca733ade5

Should you have any questions, contact Veeam Support.
Click here to send feedback regarding this KB, or suggest content for a new KB.
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please try again later.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Policy.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you for your interest in Veeam products!
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please try again later.