Mail settings nagios

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.
ericosman
Posts: 20
Joined: Thu Oct 30, 2014 4:11 am

Re: Mail settings nagios

Post by ericosman »

slansing wrote:I highly recommend you follow this guide, it should get you on the right track and cover most if not all of the requirements you have:

http://www.telnetport25.com/2012/02/con ... gios-core/
I would like to follow this but... I use CentOS and whenn i install POSTFIX i'm not getting the purple screen....

Anybody else who knows something
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Mail settings nagios

Post by rhassing »

For postfix you could do the following:
Routing all mails to a smarthost (which could be you exchange server):

As it is CentOS, I assume the postfix config files live in /etc/postfix/main.cf

In/etc/postfix/main.cf add the line:

relayhost = <your exchange ip address>:25
This should be it... And then a restart of the postfix service.
Rob Hassing
Image
ericosman
Posts: 20
Joined: Thu Oct 30, 2014 4:11 am

Re: Mail settings nagios

Post by ericosman »

It works! :D

Image

Now i see i have to fix the time of the server :lol:
Last edited by ericosman on Fri Nov 07, 2014 10:10 am, edited 1 time in total.
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Mail settings nagios

Post by rhassing »

Nice to hear it worked out.

Now I hope you don't receive too much mail :-)
Rob Hassing
Image
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Mail settings nagios

Post by slansing »

Great! Yeah, without the CLI GUI thing, that guide does not work very well, however it helps you out in the later portions.
Locked