Real-time performance monitoring and troubleshooting
Post Reply
derekross
Novice
Posts: 8
Liked: never
Joined: Jul 06, 2010 1:07 pm
Contact:

mass configure alarm actions

Post by derekross »

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.
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: mass configure alarm actions

Post by Vitaliy S. »

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!
rmancinelli
Influencer
Posts: 10
Liked: never
Joined: Sep 15, 2010 9:02 pm
Full Name: Rick Mancinelli
Contact:

Re: mass configure alarm actions

Post by rmancinelli »

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: Sep 15, 2010 9:02 pm
Full Name: Rick Mancinelli
Contact:

Re: mass configure alarm actions

Post by rmancinelli »

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
Gostev
Chief Product Officer
Posts: 31460
Liked: 6648 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: mass configure alarm actions

Post by Gostev »

This should work nicely :) but I will double check with devs on Monday just in case. Thanks!
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: mass configure alarm actions

Post by Vitaliy S. »

Rick, I've just confirmed with the development team that your customization will not break anything, so no worries.
DMermod
Influencer
Posts: 20
Liked: never
Joined: Mar 11, 2011 2:33 pm
Full Name: Denis Mermod
Contact:

Re: mass configure alarm actions

Post by DMermod »

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
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: mass configure alarm actions

Post by Vitaliy S. »

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>'
DMermod
Influencer
Posts: 20
Liked: never
Joined: Mar 11, 2011 2:33 pm
Full Name: Denis Mermod
Contact:

Re: mass configure alarm actions

Post by DMermod »

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
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: mass configure alarm actions

Post by Vitaliy S. »

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.
DMermod
Influencer
Posts: 20
Liked: never
Joined: Mar 11, 2011 2:33 pm
Full Name: Denis Mermod
Contact:

Re: mass configure alarm actions

Post by DMermod »

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

- DRM
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests