"Mail from" being overwritten by upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

"Mail from" being overwritten by upgrade

Post 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?
Last edited by dfmco on Fri Aug 15, 2014 5:09 pm, edited 1 time in total.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: "Mail from" being overwritten by upgrade

Post 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.
Former Nagios employee
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: "Mail from" being overwritten by upgrade

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: "Mail from" being overwritten by upgrade

Post 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.
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: "Mail from" being overwritten by upgrade

Post 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:

    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.
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: "Mail from" being overwritten by upgrade

Post by dfmco »

I have it configured as such but all email comes from root@localhost.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: "Mail from" being overwritten by upgrade

Post by tmcdonald »

What version of XI was this machine originally, and what version is it now?
Former Nagios employee
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: "Mail from" being overwritten by upgrade

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: "Mail from" being overwritten by upgrade

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked