Page 1 of 1

Different Notification Prefs for each Notification Method?

Posted: Tue Sep 03, 2013 3:46 pm
by Smark
Hi,

I am wondering if it is somewhat easily possible to specify specific notification preferences (enable/disable notifications, I don't want flapping alerts, etc) for each notification method (email, sms, twitter, etc)?

I am trying to get to an end state where users can log into XI, enable/disable their notifications, set their own preferences but be able to differentiate between SMS and Email. An example would be that I want ALL alerts to go via Email, but only Service Critical and Host Down alerts to go to SMS. I imagine this is a pretty common request so I am hoping I'm either missing something or there is a pre-baked solution out there that I just can't seem to find. I think in the end it would mean that each notification method for each user has it's own contact and then maybe a contact group to group all the methods together?

I understand this is possible with normal contacts and contact groups (which is what we're using now), but currently users can't manage their own preferences without going into the CCM nor does the downtime scheduling work properly from the XI interface (Core works fine).

I am grateful for any support or help you could provide!

Re: Different Notification Prefs for each Notification Metho

Posted: Tue Sep 03, 2013 4:50 pm
by lmiltchev
...currently users can't manage their own preferences without going into the CCM...
Each user in XI can manager his/her notification preferences, methods, and messages. (click on the username in the upper right corner, then select any of the menus under the "Notification Options" on the left)

Re: Different Notification Prefs for each Notification Metho

Posted: Tue Sep 03, 2013 5:54 pm
by Smark
lmiltchev wrote:
...currently users can't manage their own preferences without going into the CCM...
Each user in XI can manager his/her notification preferences, methods, and messages. (click on the username in the upper right corner, then select any of the menus under the "Notification Options" on the left)
Hi lmiltchev,

Sorry, that was an oversight on my part, maybe I didn't explain clearly.

In order to get the results I need I need to have two different contacts for each person: username_email and username_text. Using that method they can't manage their own preferences via XI menus because their contact isn't tied to their user account. They have to make changes via the CCM which requires a config rehash.

In essence, it would be nice if there was a way to be able to specify more explicit settings via the XI user interface. An example: "I don't want critical alerts for my mobile notification method, but do want it for the email notification method."

Hopefully that was more clear!

Re: Different Notification Prefs for each Notification Metho

Posted: Wed Sep 04, 2013 9:09 am
by BanditBBS
Smark,

Amen brother! Go add your voice to the feature request, so they know more people want it!

http://tracker.nagios.com/view.php?id=429

Re: Different Notification Prefs for each Notification Metho

Posted: Wed Sep 04, 2013 9:43 am
by Smark
BanditBBS wrote:Smark,

Amen brother! Go add your voice to the feature request, so they know more people want it!

http://tracker.nagios.com/view.php?id=429
Done! Here's hoping it gets implemented soon! Does anyone have a temporary workaround for now?

Re: Different Notification Prefs for each Notification Metho

Posted: Wed Sep 04, 2013 10:47 am
by BanditBBS
Smark wrote:
BanditBBS wrote:Smark,

Amen brother! Go add your voice to the feature request, so they know more people want it!

http://tracker.nagios.com/view.php?id=429
Done! Here's hoping it gets implemented soon! Does anyone have a temporary workaround for now?
I use the same workaround you mentioned, 2 ID's per person, which is ugly with 150 users and complicated as ever setup.

Re: Different Notification Prefs for each Notification Metho

Posted: Wed Sep 04, 2013 11:01 am
by sreinhardt
I may be wrong, and often am... but I believe this is more a limitation of core. If we were to do something similar to this, it would require a single XI user and dual core contacts, with the present way this is implemented. I can absolutely see where this is useful to have, but as stated, I don't think it's purely an XI issue. Could you also post a feature request to allow a core user to use different notification methods for different alerts. (should go to tracker.nagios.org as XI and core are separate trackers) Something like:

Code: Select all

Host Notification Options 1: U,D
Host Notification Command 1: notify-host-by-email
Host Notification Options 2: S,F
Host Notification Command 2: notify-host-by-pager
Having options such as this would allow us to enable this in XI in a 1 user to 1 contact way, and get this passed through much quicker! The only other way I could see doing this is using free variables to define your command on a per contact\user basis and create a custom notification that pulled the other needed arguments normally. This could be pretty easily done via templating... possibly. I may play around with this later, it's a cool idea.

Re: Different Notification Prefs for each Notification Metho

Posted: Wed Sep 04, 2013 11:25 am
by BanditBBS
sreinhardt wrote:I may be wrong, and often am... but I believe this is more a limitation of core. If we were to do something similar to this, it would require a single XI user and dual core contacts, with the present way this is implemented. I can absolutely see where this is useful to have, but as stated, I don't think it's purely an XI issue. Could you also post a feature request to allow a core user to use different notification methods for different alerts. (should go to tracker.nagios.org as XI and core are separate trackers) Something like:

Code: Select all

Host Notification Options 1: U,D
Host Notification Command 1: notify-host-by-email
Host Notification Options 2: S,F
Host Notification Command 2: notify-host-by-pager
Having options such as this would allow us to enable this in XI in a 1 user to 1 contact way, and get this passed through much quicker! The only other way I could see doing this is using free variables to define your command on a per contact\user basis and create a custom notification that pulled the other needed arguments normally. This could be pretty easily done via templating... possibly. I may play around with this later, it's a cool idea.
But XI uses the XI_Service_notification_handler and XI_Host_notification_handler to do notifications. That means it follows whatever is in the user's XI account, not their core contact. Those two things can be extremely different and it won't care what is in the core contact if using the XI handlers.

Re: Different Notification Prefs for each Notification Metho

Posted: Wed Sep 04, 2013 11:38 am
by sreinhardt
I suppose this is a valid argument. Modifying the user page and postgres db to include additional definitions could be possible. It's a bit out of my league though, not a DB person. I'll check with scott as time permits.