Nagios email alerts from multiple Nagios instances

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cdm
Posts: 7
Joined: Thu Mar 21, 2019 4:04 pm

Nagios email alerts from multiple Nagios instances

Post by cdm »

We have multiple Nagios servers sending email alerts. I'm trying to find out how I can differentiate which server emails are coming from. The 'From' field contains the Nagios hostname from which it's coming but the hostnames are different by 1 character, and not really obvious. So I want to really be able to differentiate which Nagios server it's coming from . Anyone know ?

Thanks,
Chris
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios email alerts from multiple Nagios instances

Post by scottwilkerson »

What if you change the host & service notification command on each server to add the name of the server it is coming from to either the subject or body of the message?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cdm
Posts: 7
Joined: Thu Mar 21, 2019 4:04 pm

Re: Nagios email alerts from multiple Nagios instances

Post by cdm »

Which file would you do that in ? I admit, I haven't really poked around just yet.
Locked