Page 1 of 1
NagiosXI to send one mail to multiple teams as CC
Posted: Tue Aug 25, 2020 7:36 am
by ghosham
Hello,
We currently have NagiosXI configured such as in the event of an issue if alerts 3 teams. However, all 3 teams receive emails individually. This makes multiple resources jump into an issue where TeamA doesn't know whether TeamB is going to work on that or not. The mails flow as below:
Teams.JPG
Each of the circle represent a team and our mail reads as:
mail.JPG
And this is all good as it is supposed to be received by us. However, I am wondering if there is a way of instead 3 different mails to 3 teams, can it do something like:
To: Team1
CC: Team2; Team3
In that way, all the teams would be receiving the alerts and everyone is aware that other teams are also notified.
Note: I am not talking about service escalation here, where an alert gets routed to Team2 and as such, when Team1 doesnt take an action.
Re: NagiosXI to send one mail to multiple teams as CC
Posted: Tue Aug 25, 2020 4:16 pm
by benjaminsmith
Hi,
Which method are you currently using to send notifications, SMTP or Sendmail? If you are using the later, the following thread shows how you can modify the notification command to include the CC option.
Send email with Subject and CC list in nagios Core
If you using STMP, this would likely require some code changes to work, but I can look into this further.
Benjamin
Reference:
https://linux.die.net/man/8/sendmail.sendmail
Re: NagiosXI to send one mail to multiple teams as CC
Posted: Wed Aug 26, 2020 4:44 am
by ghosham
Hello,
We use SMTP option.
Regards,
Amitabh
Re: NagiosXI to send one mail to multiple teams as CC
Posted: Wed Aug 26, 2020 4:14 pm
by benjaminsmith
HI Amitabh,
We use phpmailer to handle the SMTP messages, and while this certainly can be done, it's not built into the existing notification scripts that pass the notification variables to phpmailer.
Not sure if this would work for you, but one option would be to combine these teams into one main contact group for notifications.
Re: NagiosXI to send one mail to multiple teams as CC
Posted: Thu Aug 27, 2020 5:05 am
by ghosham
Hi Benjamin,
The current setup is:
Team1 {User11, User12, User13} => Nagios_Contact1
Team2 {User21, User22, User23} => Nagios_Contact2
Team3 {User31, User32, User33} => Nagios_Contact3
Nagios_Contact1, Nagios_Contact2, Nagios_Contact3 => Nagios_ContactGroup.
Are you suggesting the same thing? If yes, it is already in place, however, mails are being recieved by inidividual teams. The issue is Team1 doesn't know if Team2 and Team3 has received the email and taking any action, as there has been situations where all 3 teams were working on the same issue, breaking it more than fixing it
You referenced something about code change, could you please explain further about this?
Re: NagiosXI to send one mail to multiple teams as CC
Posted: Thu Aug 27, 2020 10:53 am
by benjaminsmith
Hi,
You referenced something about code change, could you please explain further about this?
This would really require me to submit a feature request. For the time being, then there really isn't a better workaround that I can think of that what you have already implemented here.
Re: NagiosXI to send one mail to multiple teams as CC
Posted: Tue Sep 01, 2020 9:22 am
by ghosham
Can you put in a feature request please?
Re: NagiosXI to send one mail to multiple teams as CC
Posted: Tue Sep 01, 2020 4:20 pm
by ssax
I have submitted the request with a link back to this forum post:
FR: XI - Add some sort of CC functionality (to send a single email showing all contacts notified) or an option to see show all contacts the notification was sent to so the contact receiving the email knows who all was notified
Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.