#1 Global Leader in Data Resilience

Massive Alarm Actions configuration (Email notifications, SNMP traps or Run script) in Veeam Monitor

KB ID: 1444
Product: Veeam ONE | 8.0 | 9.0 | 9.5 | 10 | 11
Published: 2011-12-14
Last Modified: 2021-03-31
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

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.

Purpose

If you have Alarm Actions option configured previously in Veeam Monitor then you may need to apply changes into these configuration options globally.

Solution

The best way to get this configured properly is to run SQL script against Veeam Monitor’s database. Please follow the instructions below in order to apply the changes using the correct way:
 

1.  Backup Veeam Monitor's database (default database name is VeeamOne);
 
2. Run the following script against VeeamOne database (feel free to use SQL Server Management Studio Express to do this):
 
                 Update monitor.Alarm Set actions = '<Actions>ACTION_TAG</Actions>'
 
                 ACTION_TAG might have the following values (depending on your needs):
 
                To send an email notification - <SendMail Value="receiver@domain.com"/>
 
                To send SNMP Trap to SNMP server - <SendTrap Value="SNMP_Server_Address"/>
 
                To run the script - <RunScript Value="Full_path_to_the_script"/>
 
                To clean the actions - just use no ACTION_TAG at all.
 
NOTE: Please keep in mind that you are allowed to use multiple ACTION_TAGs in order to have several actions to perform once the alarm has been triggered.
 
3. Restart “Veeam Data Collector Service” service.



EXAMPLES:
 

1. Send email notifications to admin@company.net email address:
     Update monitor.Alarm Set actions = '<Actions><SendMail Value="admin@company.net"/></Actions>'
 
2.  Send SNMP Traps (make sure you have global SNMP settings configured properly):
      Update monitor.Alarm Set actions = '<Actions><SendTrap Value=""/></Actions>'
 
3.  Run Magic.bat file which is located in C:\scripts\ folder :
      Update monitor.Alarm Set actions = '<Actions><RunScript Value=" C:\scripts\Magic.bat"/></Actions>'
 
4.  Erase all predefined actions on all the alarms:
      Update monitor.Alarm Set actions = '<Actions></Actions>'
 
5.  Send email notification to admin@company.net and support@company.net email addresses:
      Update monitor.Alarm Set actions = '<Actions><SendMail Value="admin@company.net"/><SendMail     Value="support@company.net"/></Actions>'
 
6.  Send email notification to admin@company.net and run Magic.bat file which is located in C:\scripts\ folder:
     Update monitor.Alarm Set actions = '<Actions><SendMail Value="admin@company.net"/><RunScript Value=" C:\scripts\Magic.bat"/></Actions>'


CAUTION:
This will cause a large increase of email alerts to the email address added so it is necessary 

1. either to disable any unwanted alarms before implementing this script (but this way the disabled alarms will not trigger at all);
2. or delete the "send e-mail" action from the alarm settings (on those alarm which you do not need to e-mail) after you run the query.
To submit feedback regarding this article, please click this link: Send Article Feedback
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 hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

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 Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
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.