NagiosXI to send one mail to multiple teams as CC

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ghosham
Posts: 17
Joined: Tue May 12, 2020 11:40 am

NagiosXI to send one mail to multiple teams as CC

Post 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.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI to send one mail to multiple teams as CC

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ghosham
Posts: 17
Joined: Tue May 12, 2020 11:40 am

Re: NagiosXI to send one mail to multiple teams as CC

Post by ghosham »

Hello,

We use SMTP option.

Regards,
Amitabh
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI to send one mail to multiple teams as CC

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ghosham
Posts: 17
Joined: Tue May 12, 2020 11:40 am

Re: NagiosXI to send one mail to multiple teams as CC

Post 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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI to send one mail to multiple teams as CC

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ghosham
Posts: 17
Joined: Tue May 12, 2020 11:40 am

Re: NagiosXI to send one mail to multiple teams as CC

Post by ghosham »

Can you put in a feature request please?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NagiosXI to send one mail to multiple teams as CC

Post 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.
Locked