Page 1 of 1
"Mail from" being overwritten by upgrade
Posted: Fri May 09, 2014 5:00 am
by dfmco
I have made changes to the commands.cfg file to change the send from email. Every upgrade reverts those changes. I tried to change strategy and change the sendmail.mc file but it does not exist. I am using a pre-built VMWare image from the Nagios download site and I have sendmail set as the mail method. Can you point me in the correct direction to make this change survive an upgrade?
Re: "Mail from" being overwritten by upgrade
Posted: Fri May 09, 2014 9:07 am
by tmcdonald
Changes should not be made to the .cfg files, but rather in the CCM. Upgrades should not change this, but any time you apply config from the CCM it will overwrite.
Re: "Mail from" being overwritten by upgrade
Posted: Thu Jul 03, 2014 6:32 am
by dfmco
I see nowhere in the CCM to change the mail from address. Under admin I can change "Send Mail From:" but I still get mail sent from root@localhost. How can I ensure that mail comes from a specific address that will survive an upgrade?
Re: "Mail from" being overwritten by upgrade
Posted: Thu Jul 03, 2014 9:50 am
by tmcdonald
The "Send Mail From" should be working, but if you prefer the commands.cfg route you would just go to the CCM and instead of editing a host, service, contact, etc you would go to the Commands section and edit the command from there.
Re: "Mail from" being overwritten by upgrade
Posted: Thu Jul 03, 2014 10:51 pm
by Box293
To change the address that alerts are sent from do the following:
- Click the Admin menu
Under System Config click Manage Email Settings
Fill in the "Send Mail From" field, for example:
Re: "Mail from" being overwritten by upgrade
Posted: Fri Jul 04, 2014 12:31 am
by dfmco
I have it configured as such but all email comes from root@localhost.
Re: "Mail from" being overwritten by upgrade
Posted: Mon Jul 07, 2014 9:23 am
by tmcdonald
What version of XI was this machine originally, and what version is it now?
Re: "Mail from" being overwritten by upgrade
Posted: Thu Jul 10, 2014 6:27 am
by dfmco
I am now on the latest version (2014r1.2). The install was rebuilt from scratch (not upgraded). Email is still coming from root@localhost.
Re: "Mail from" being overwritten by upgrade
Posted: Thu Jul 10, 2014 1:09 pm
by lmiltchev
I have it configured as such but all email comes from root@localhost.
I suspect your monitoring contacts are NOT xi users but "contacts only". Does nagiosadmin contact also receive emails from root@localhost? See review our documentation on how to configure notifications in XI here:
http://assets.nagios.com/downloads/nagi ... ations.pdf