Thoughts on notifications with expanded recipient headers?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Thoughts on notifications with expanded recipient headers?

Post by hhlodge »

Before I put this in Tracker as a feature request, I wanted to 1) see if it's already possible (I don't think so) and 2) what people's thoughts were. When notifications come in, I often would like to "reply all" to the contacts for that notification to let them know something, inquire about the issue or any number of reasons. I already include who's getting notified by use of the $NOTIFICATIONRECIPIENTS$ macro, but that's not in the header recipient for the message, so I have to include addresses manually. Would it make sense or be of value for the header recipient (To: field) to include the email addresses of the contacts? I'm not sure if this would break anything. Thanks.
- Kyle
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Thoughts on notifications with expanded recipient header

Post by scottwilkerson »

It would cause all of the recipients to get multiple copies of the alert, not sure if that would be the best idea...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: Thoughts on notifications with expanded recipient header

Post by hhlodge »

Having the recipients listed in the To: field (header recipients) would have no affect on the envelope recipients. This is easily proven with the following.

Code: Select all

$ > mailin.txt << EOF
To: [email protected],[email protected]
Subject: Test

Testing header recipients.
EOF

$ mailin | sendmail -v [email protected]
Only recipient1 will get the mail but both will be in the To: line and if he does a reply all, the MUA will put both (or all) in the new message and sendmail would then put all recipients in the envelope recipients.
- Kyle
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Thoughts on notifications with expanded recipient header

Post by scottwilkerson »

True, I thought you were talking about using the XI notification handler which actually used phpmailer.

With XI as it is you could create a custom notification handler setup this way and use that.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: Thoughts on notifications with expanded recipient header

Post by hhlodge »

I don't see a macro with the list of notified email addresses, just the list of short names in $NOTIFICATIONRECIPIENTS$. Do I need to resolve the email addresses myself from that list?
- Kyle
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Thoughts on notifications with expanded recipient header

Post by scottwilkerson »

Yes, you would need to resolve them
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked