-
- Novice
- Posts: 8
- Liked: never
- Joined: Jul 06, 2010 1:07 pm
- Contact:
mass configure alarm actions
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.
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.
-
- VP, Product Management
- Posts: 27347
- Liked: 2785 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: mass configure alarm actions
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!
-
- Influencer
- Posts: 10
- Liked: never
- Joined: Sep 15, 2010 9:02 pm
- Full Name: Rick Mancinelli
- Contact:
Re: mass configure alarm actions
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.
-
- Influencer
- Posts: 10
- Liked: never
- Joined: Sep 15, 2010 9:02 pm
- Full Name: Rick Mancinelli
- Contact:
Re: mass configure alarm actions
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
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
-
- Chief Product Officer
- Posts: 31753
- Liked: 7257 times
- Joined: Jan 01, 2006 1:01 am
- Location: Baar, Switzerland
- Contact:
Re: mass configure alarm actions
This should work nicely but I will double check with devs on Monday just in case. Thanks!
-
- VP, Product Management
- Posts: 27347
- Liked: 2785 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: mass configure alarm actions
Rick, I've just confirmed with the development team that your customization will not break anything, so no worries.
-
- Influencer
- Posts: 20
- Liked: never
- Joined: Mar 11, 2011 2:33 pm
- Full Name: Denis Mermod
- Contact:
Re: mass configure alarm actions
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
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
-
- VP, Product Management
- Posts: 27347
- Liked: 2785 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: mass configure alarm actions
Denis, the SQL script that you need is in the post above
rmancinelli wrote:update dbo.Alarm
set actions = '<Actions><SendMail Value="helpdesk@xxx.com" /></Actions>'
-
- Influencer
- Posts: 20
- Liked: never
- Joined: Mar 11, 2011 2:33 pm
- Full Name: Denis Mermod
- Contact:
Re: mass configure alarm actions
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
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
-
- VP, Product Management
- Posts: 27347
- Liked: 2785 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: mass configure alarm actions
The syntax should be the following.
Clear all current email addresses:
Set multiple addresses for all alarms:
That would make sure you do not lose any other defined alarms actions, which is most likely to happen with the original code example.
Clear all current email addresses:
Code: Select all
update alarm set Actions.modify('delete /Actions/SendMail')
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]')
-
- Influencer
- Posts: 20
- Liked: never
- Joined: Mar 11, 2011 2:33 pm
- Full Name: Denis Mermod
- Contact:
Re: mass configure alarm actions
Thanks for your help. I will try these out the next chance I get.
- DRM
- DRM
Who is online
Users browsing this forum: No registered users and 2 guests