How to configure a mail server to send nagios notifications

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to configure a mail server to send nagios notificati

Post by jdalrymple »

No apology necessary, I just use analogies to try to help with my descriptions.

Did that clear everything up? Are you now able to use your SMTP of choice to send notification E-mails? I have personally used the tutorial I shared earlier and found that it works easily.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: How to configure a mail server to send nagios notificati

Post by Jessuzz94 »

I will try, if it works for all the people that comment the tutorial, should be with me too, Thanks!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to configure a mail server to send nagios notificati

Post by ssax »

Great, let us know if you have any more questions.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: How to configure a mail server to send nagios notificati

Post by Jessuzz94 »

Doesnt work, it tutorial should be work to use the command "echo | mail -s" to test?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to configure a mail server to send nagios notificati

Post by jdalrymple »

If you followed the tutorial exactly - testing would be done by piping the E-mail body through sendEmail, not mail.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: How to configure a mail server to send nagios notificati

Post by Jessuzz94 »

oh okay, im accustoming to use the | mail command
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to configure a mail server to send nagios notificati

Post by jdalrymple »

You would use mail if you are mailing from your local MTA. If you're using an SMTP relay (such as gmail or a mail server provided by your ISP) you would need to either do some complicated relay configuration to sendmail/postfix/exim/whatever or use an SMTP specific mail binary such as sendEmail. That is the difference.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: How to configure a mail server to send nagios notificati

Post by Jessuzz94 »

Yeah i sawD:
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to configure a mail server to send nagios notificati

Post by jdalrymple »

Since it looks like you're going down the road of using your own mailer and configuring it to relay I'm going to lock this thread and we'll finish this configuration in one thread instead of 2. Will that be OK, or is this thread unrelated to the other?

https://support.nagios.com/forum/viewto ... 671#144476
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: How to configure a mail server to send nagios notificati

Post by Jessuzz94 »

have relation, can lock, very thanks!
Locked