TECHZEN Zenoss User Community ARCHIVE  

Zenoss 6 Core notifications

Subject: Zenoss 6 Core notifications
Author: Jason Breitman
Posted: 2018-08-27 16:00

I am looking to configure a notification for multiple subscribers and want all of the recipients to be on the same email alert so that they can reply to each other.  This functionality did work in Zenoss 4.X and I am not sure why I am seeing individual emails to each recipient.  Can someone provide me with instructions on how to allow multiple recipients for a given email notification rule?

------------------------------
Jason
------------------------------


Subject: RE: Zenoss 6 Core notifications
Author: Jason Breitman
Posted: 2018-09-27 08:43

I had discussed this issue over IRC and the suggestion was to use email distribution lists which does work, but does not achieve the goal that I need.  I want each person to know the names of all the people that received the alert.  The email distribution list hides the member names.  I have not seen a reply to my post, so I am reposting and clarifying.

------------------------------
Jason
------------------------------


Subject: RE: Zenoss 6 Core notifications
Author: Jason Breitman
Posted: 2018-10-24 15:48

I had discussed this issue over IRC and the suggestion was to use email distribution lists which does work, but does not achieve the goal that I need.  I want each person to know the names of all the people that received the alert.  The email distribution list hides the member names.  I have not seen a reply to my post, so I am reposting and clarifying.

------------------------------
Jason
------------------------------


Subject: RE: Zenoss 6 Core notifications
Author: Jane Curry
Posted: 2018-11-07 05:43

Hi Jason,
Exactly what version of Zenoss 6 are you running?

The code certainly changed between Zenoss 5.2.1 and 6.1.2 (5.2.1 works the way you want; 6.1.2 doesn't).  They have changed the code to try and accommodate users in different timezones and a by-product is that they are sending individual emails rather than a single email with all users showing on the "To" line of the email.

So, a couple of questions....

  1. Does your organisation care about Zenoss users in different timezones?  If you really care about this, then it is much harder to fix.
  2. How happy would you / your organisation be modifying the base Zenoss code slightly to get the email behaviour you want (if I highlight what needs doing)?  Obviously, your risk and you must test in your own environment.  The other alternative to a small code hack would be to build a ZenPack with a modified email notification type that behaves as you want.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: Zenoss 6 Core notifications
Author: Jane Curry
Posted: 2018-11-07 14:19

So the really good news is that in the latest 6.2.1, email notifications to multiple subscribers has gone back to working as it used to :)

In other words, each subscriber gets an email that shows all subscibers on the "To" field of the email header.

What I don't understand is where things have changed.  I expected it to be in /opt/zenoss/Products/ZenModel/actions.py but that code is identical in 6.1.2 and 6.2.1.  Anyone else enlighten us?

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------

Subject: RE: Zenoss 6 Core notifications
Author: Jason Breitman
Posted: 2018-11-15 13:38

  1. We do not have to accommodate users in different timezones.
  2. I am up for modifying the base Zenoss code slightly to get the email behavior I want.


------------------------------
Jason
------------------------------


Subject: RE: Zenoss 6 Core notifications
Author: Jason Breitman
Posted: 2018-11-15 13:40

I am running Zenoss 6.1.2 r132 which I forgot to mention.

------------------------------
Jason
------------------------------


Subject: RE: Zenoss 6 Core notifications
Author: Jane Curry
Posted: 2018-11-21 12:08

So.......
This turned out to be caused by a known bug - see https://jira.zenoss.com/browse/ZEN-29891  .

The executeBatch in the class EmailAction in /opt/zenoss/Products/ZenModel/actions.py determines what emails to send based on user email and their timezone.  If users are in a separate timezone then they get a separate email.

Inspecting ADVANCED -> Users and the detail for a user, there is a bug.  The GUI shows a time zone populated but if you check with zendmd then user.timezone is blank for some users (and the executeBatch code obviously checks the dmd).  One solution is, in the GUI, is to actively set the user's timezone and then check with zendmd using:

In [4]: for user in dmd.ZenUsers.getAllUserSettings():
 ...:     print user.email, user.timezone

The JIRA ticket also has some code to check and set a user's timezone.

Once timezone is consistent, you get the correct emails.

This problem has been around for some time and is still in Zenoss Core 6.2.1.  The JIRA ticket has gone nowhere since April 2018 so if it is affecting anyone else, I suggest you append to the ticket.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


< Previous
Event Mappings from Command Line
  Next
Partitions not set up on ISO install - Docker Service not starting
>