mass configure alarm actions

Real-time performance monitoring and troubleshooting

mass configure alarm actions

Veeam Logoby derekross » Mon Jul 19, 2010 12:33 pm

Is there a way to mass configure alarm actions in the public beta of monitor 5?

I see you can select all alarms, then select modify, then actions, then create your action. However, it does not seem to populate to all highlighted alarms. Is this feature available? I would like an easy way to so turn on email notifications for many alarms at once. Thanks.
derekross
Novice
 
Posts: 8
Liked: never
Joined: Tue Jul 06, 2010 1:07 pm

Re: mass configure alarm actions

Veeam Logoby Vitaliy S. » Mon Jul 19, 2010 1:25 pm

Hello Derek, right now you cannot do mass-configuration of selected alarms to use one set of actions. The only workaround is to edit each alarm individually. But we will look closer at adding such capability, thank you for your feedback!
Vitaliy S.
Veeam Software
 
Posts: 19558
Liked: 1102 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: mass configure alarm actions

Veeam Logoby rmancinelli » Sat Oct 09, 2010 4:59 pm

I would *love* to have this feature! Right now I need to go in and manually add email addresses to each of the alarms. In our case, all of them get the same email address (helpdesk@....) so this consumes an inordinate amount of time.
rmancinelli
Influencer
 
Posts: 10
Liked: never
Joined: Wed Sep 15, 2010 9:02 pm
Full Name: Rick Mancinelli

Re: mass configure alarm actions

Veeam Logoby rmancinelli » Sat Oct 09, 2010 5:21 pm

Actually, after a little poking through the DB schema, I just issued the following SQL statement:

update dbo.Alarm
set actions = '<Actions><SendMail Value="helpdesk@xxx.com" /></Actions>'

It updated 117 rows. I restarted the collector service and Viola! all the actions were there.

The question is.........did I break anything, or will this work?

Thanks!
Rick
rmancinelli
Influencer
 
Posts: 10
Liked: never
Joined: Wed Sep 15, 2010 9:02 pm
Full Name: Rick Mancinelli

Re: mass configure alarm actions

Veeam Logoby Gostev » Sat Oct 09, 2010 5:43 pm

This should work nicely :) but I will double check with devs on Monday just in case. Thanks!
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: mass configure alarm actions

Veeam Logoby Vitaliy S. » Sun Oct 10, 2010 11:37 am

Rick, I've just confirmed with the development team that your customization will not break anything, so no worries.
Vitaliy S.
Veeam Software
 
Posts: 19558
Liked: 1102 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: mass configure alarm actions

Veeam Logoby DMermod » Wed Mar 23, 2011 1:31 pm

Here's a question, is there a way to enable multiple e-mail address this way? If so, what is the code?

Also, can you re-write this code to remove all of the e-mail addresses as well. This will help if we are in test mode and need to "disable" notifications (not get e-mails every 2 seconds).

That way, when we are done, we can "enable" all e-mails to go through, and in turn "disable" them when performing work on the environment.

Thanks,

- DRM
DMermod
Influencer
 
Posts: 15
Liked: never
Joined: Fri Mar 11, 2011 2:33 pm
Full Name: Denis Mermod

Re: mass configure alarm actions

Veeam Logoby Vitaliy S. » Wed Mar 23, 2011 1:50 pm

Denis, the SQL script that you need is in the post above :wink:
rmancinelli wrote:update dbo.Alarm
set actions = '<Actions><SendMail Value="helpdesk@xxx.com" /></Actions>'
Vitaliy S.
Veeam Software
 
Posts: 19558
Liked: 1102 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: mass configure alarm actions

Veeam Logoby DMermod » Wed Mar 23, 2011 2:45 pm

Vitaliy,

I do see that, but what if I want to add 2 separate e-mails to the actions, how does it change?

Also, what can I put in SQL to clear the SendMail Value for all current e-mail addresses?

Thanks,

- DRM
DMermod
Influencer
 
Posts: 15
Liked: never
Joined: Fri Mar 11, 2011 2:33 pm
Full Name: Denis Mermod

Re: mass configure alarm actions

Veeam Logoby Vitaliy S. » Wed Mar 23, 2011 4:42 pm

The syntax should be the following.

Clear all current email addresses:
Code: Select all
update alarm set Actions.modify('delete /Actions/SendMail')

Set multiple addresses for all alarms:
Code: Select all
update alarm set Actions.modify('insert <SendMail Value="helpdesk@domain.com" /> into (/Actions)[1]')
update alarm set Actions.modify('insert <SendMail Value="helpdesk2@domain.com" /> into (/Actions)[1]')

That would make sure you do not lose any other defined alarms actions, which is most likely to happen with the original code example.
Vitaliy S.
Veeam Software
 
Posts: 19558
Liked: 1102 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: mass configure alarm actions

Veeam Logoby DMermod » Thu Mar 24, 2011 12:09 pm

Thanks for your help. I will try these out the next chance I get.

- DRM
DMermod
Influencer
 
Posts: 15
Liked: never
Joined: Fri Mar 11, 2011 2:33 pm
Full Name: Denis Mermod


Return to Monitoring



Who is online

Users browsing this forum: No registered users and 4 guests