"Mail from" being overwritten by upgrade
"Mail from" being overwritten by upgrade
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?
Last edited by dfmco on Fri Aug 15, 2014 5:09 pm, edited 1 time in total.
Re: "Mail from" being overwritten by upgrade
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.
Former Nagios employee
Re: "Mail from" being overwritten by upgrade
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
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.
Former Nagios employee
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: "Mail from" being overwritten by upgrade
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:Code: Select all
Nagios XI Prouction <[email protected]>
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: "Mail from" being overwritten by upgrade
I have it configured as such but all email comes from root@localhost.
Re: "Mail from" being overwritten by upgrade
What version of XI was this machine originally, and what version is it now?
Former Nagios employee
Re: "Mail from" being overwritten by upgrade
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
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:I have it configured as such but all email comes from root@localhost.
http://assets.nagios.com/downloads/nagi ... ations.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!