Page 1 of 2
Contact Groups & Contact Templates
Posted: Fri Mar 22, 2013 4:51 pm
by asmgiadmin
I have a host-template sending alerts to a contact-group-1.
I've defined contact-template to manage contact-group-1 and under alert settings, turned host notifications off.
When I send test alert, from host, alert makes it through.
Can contact templates be used to control notifications options for contact groups?
What is the advantage in assigning contact templates to contact groups?
Re: Contact Groups & Contact Templates
Posted: Fri Mar 22, 2013 9:33 pm
by asmgiadmin
In short, how can I configure a contact group to only receive critical service notifications. I'm thinking I can assign contact-template to contact-group and uncheck 'w'.
Re: Contact Groups & Contact Templates
Posted: Sat Mar 23, 2013 9:52 am
by scottwilkerson
asmgiadmin wrote:In short, how can I configure a contact group to only receive critical service notifications. I'm thinking I can assign contact-template to contact-group and uncheck 'w'.
This is correct as long as the contact definitions do not have any of the boxes checked, if they do it would override the template
Re: Contact Groups & Contact Templates
Posted: Sat Mar 23, 2013 4:05 pm
by asmgiadmin
OK Great.
I've noticed that XI checks all options by default for new user. Is there a way to modify config to create new contact with all options unchecked by default?
Re: Contact Groups & Contact Templates
Posted: Sat Mar 23, 2013 4:41 pm
by asmgiadmin
Also, XI seems to be adding the following:
host_notifications_enabled 1
service_notifications_enabled 1
to each new user's contact.cfg
I'd like to keep notification setting out of the contact.cfg files and cannot seem to find a way to remove. Users do not have notifications enabled in XI. How can settings referenced above be removed?
Re: Contact Groups & Contact Templates
Posted: Mon Mar 25, 2013 9:18 am
by scottwilkerson
asmgiadmin wrote:OK Great.
I've noticed that XI checks all options by default for new user. Is there a way to modify config to create new contact with all options unchecked by default?
If you have the Enterprise Edition you can set defaults under Admin -> Notification Management
Re: Contact Groups & Contact Templates
Posted: Mon Mar 25, 2013 9:28 am
by asmgiadmin
scottwilkerson wrote:asmgiadmin wrote:OK Great.
I've noticed that XI checks all options by default for new user. Is there a way to modify config to create new contact with all options unchecked by default?
If you have the Enterprise Edition you can set defaults under Admin -> Notification Management
Notification Manager will not remove
Code: Select all
host_notifications_enabled 1
service_notifications_enabled 1
I've checked:
Set these notification messages as default for all users
and
Check this box if you want to deploy the notification settings below.
with all options unchecked and selected appropriate users.
no change.
Please advise as this is causing significant notification issue.
Re: Contact Groups & Contact Templates
Posted: Mon Mar 25, 2013 11:33 am
by asmgiadmin
To clarify, I've chosen against using xi_notification_handlers and have created my own commands for email and SMS alerts, and have assigned contact templates to contact groups to control alert options. I needed to control notification options, for example contact-group-1 receives both critical and warnings while contact-group-2 only receives critical.
I realize those settings can be controlled in the user config, but I found it more convenient to control using contact-template.
The above scenario works great for contacts created manually, without XI user account, but I'm running into issues when XI account exists.
1. XI writes host and service notification parameters to contact.cfg. How can I remove? I've tried several different methods in admin -> notification management without any luck
2. XI seems to control notification settings when user exists in XI and core contact configured manually. How can I troubleshoot?
Please advise how XI user can be created (without any XI notification options) in combination with core contact, containing only the following:
EDIT: Removed contactgroups from contact config
Re: Contact Groups & Contact Templates
Posted: Mon Mar 25, 2013 2:22 pm
by scottwilkerson
As long as you are configuring everything through the CCM it shouldn't have any bearing.
Are you setting this all up through the CCM? When you look at the CCM what are the notification handlers set to?
Re: Contact Groups & Contact Templates
Posted: Mon Mar 25, 2013 2:50 pm
by asmgiadmin
Creating contact in CCM works fine. The issue is XI creating contact.cfg with unspecified parameters mentioned above:
host_notifications_enabled 1
service_notifications_enabled 1
How can I create new user with XI without writing notification options to corresponding contact.cfg file?
Specifying host / service notifications in contact.cfg overrides templates.