Page 1 of 1

Nagios email alerts from multiple Nagios instances

Posted: Wed May 13, 2020 2:27 pm
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

Re: Nagios email alerts from multiple Nagios instances

Posted: Wed May 13, 2020 3:57 pm
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?

Re: Nagios email alerts from multiple Nagios instances

Posted: Wed May 13, 2020 4:41 pm
by cdm
Which file would you do that in ? I admit, I haven't really poked around just yet.