Sending notifications emails problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Sending notifications emails problem

Post by mmestnik »

I would have been shocked if the hostname was anything other then the one used in the envelope headers. However it is surprising that it differs from what is set in some of our other VM images. Can you explain where/when this image came from or how it's hostname differs?

Please note that your issue has no solution and that these questions are of mere curiosity. You should seek changes to your mailserver's configuration as the solution.
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

E-mail question during Trial

Post by mikemasters »

I am configuring a XI server to test, and I found one thing with e-mail. I am using SMTP under " Manage E-mail Settings" and would like the e-mails to come from [email protected]. I have it set as : Send mail From: [email protected]. When I click the send test e-mail button from that screen I get a e-mail from [email protected], that works fine..

But when I get an Alert sent to me from nagios server it comes thou as nagios@hostname ,
How come they come through as a different from address.? Am I missing something.

Thanks

Mike
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: E-mail question during Trial

Post by mmestnik »

This is expected behavior.
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

Re: E-mail question during Trial

Post by mikemasters »

Sorry, it said I don't have access to that forum... can you please post the info?

Mike
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: E-mail question during Trial

Post by mmestnik »

You know, that might have been the wrong link any way. Have you changed nagiosadmin's template? The default template was incorrect, so if you haven't changed it to use the XI template, you might see something like that.
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

Re: E-mail question during Trial

Post by mikemasters »

Changed the template from the generic template to the Xi template, saved updated config. then went into hosts, advanced, and custom notification, and still comes thru as nagios@localhost, and not what is setup in the e-mail settings. ( [email protected] )

here is something else... When I send a test e-mail in the message options i see the message relay through my SMTP relay then onto my internet e-mail host. When it does this the name comes through correctly. When the mail is sent as a alert is bypasses my relay and is sent directly to the internet server. Nagios XI server has access to the internet outgoing.


I believe this might bee causing my issue......
Any ideas on how to resolve that.

Mike
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: E-mail question during Trial

Post by mmestnik »

Try changing from sendmail to using the php SMTP mailer. Also note that you can't effect the Envelope, only the email's Headers.
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

Re: E-mail question during Trial

Post by mikemasters »

I have been using SMTP the whole time, sorry if I did not state that.
Like I was saying in the last message, if I send a test e-mail the system will send thru my internal SMTP relay. If the system sends an alert it does a DNS lookup on the internet and sends directly to the M1 record for our domain. and these 2 processes send the mail as from different users.
I need the e-mail to come from a specific address, is there a config file to tell the alerts to use the same setting as the web interface.?

Mike
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: E-mail question during Trial

Post by mmestnik »

I meant that you should toggle this option, try the other option if the option you are using does not work.

Sorry for not being clear.
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

Re: E-mail question during Trial

Post by mikemasters »

OK, I have done some testing, changed SMTP to sendmail, and back again. Changed the template from generic to XI template, back to generic. Tried as many combos as I could. And still did not change the outcome...
When I tell the web-interface to send a test e-mail it come thou as from the address I put in under mail settings, hotsite@domainname.....
When a alarm is triggered, the alerts come thou as nagios@localhostname

I really need to have the e-mail come from hotsite@domainname[/i] due to e-mail rules that I have in place. Is there a config file that stores the from e-mail address for alerts that can be changed...

Thanks

Mike
Locked