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
Nagios email alerts from multiple Nagios instances
-
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
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
Which file would you do that in ? I admit, I haven't really poked around just yet.