Different Notification Prefs for each Notification Method?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Smark
Posts: 32
Joined: Tue Jan 08, 2013 6:12 pm

Different Notification Prefs for each Notification Method?

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Different Notification Prefs for each Notification Metho

Post 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)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Smark
Posts: 32
Joined: Tue Jan 08, 2013 6:12 pm

Re: Different Notification Prefs for each Notification Metho

Post 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!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Different Notification Prefs for each Notification Metho

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Smark
Posts: 32
Joined: Tue Jan 08, 2013 6:12 pm

Re: Different Notification Prefs for each Notification Metho

Post 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?
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Different Notification Prefs for each Notification Metho

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Different Notification Prefs for each Notification Metho

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Different Notification Prefs for each Notification Metho

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Different Notification Prefs for each Notification Metho

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked