email notifications (postfix)

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.
Locked
felipe.costa
Posts: 6
Joined: Thu Jan 03, 2013 12:47 pm

email notifications (postfix)

Post by felipe.costa »

Hi,

Well... i'm facing big trouble trying to make nagios send email notification.

I' ve nagios working great, with all services i need, but i'd like to configure postfix to send e-mails to my personal email if something goes wrong.

I don't know how to do that.

Postfix is already installed, and i created another user and configured with my personal email to be notified.

can someone help me?

best regards.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: email notifications (postfix)

Post by jsmurphy »

The person who is best going to be able to help you in this regard (assuming you are setting up Nagios for a company) is your email administrator, he'll be able to tell you what the SMTP relay is and if there are any special requirements for connecting to it... from there it's usually just a matter of configuring two or three lines in postfix.

Often you will only need to configure this in /etc/postfix/main.cf
my hostname = nagios.domain.com
my relayhost = mysmtpserver.domain.com
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: email notifications (postfix)

Post by scottwilkerson »

you may be able to gleen some information by following the maillog on the Nagios system

Code: Select all

tail -f /var/log/maillog
(location may vary by OS)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
felipe.costa
Posts: 6
Joined: Thu Jan 03, 2013 12:47 pm

Re: email notifications (postfix)

Post by felipe.costa »

I'd like to thnak you guys, your hints are very useful for me.

I solved my problem configuring postfix as a nullclient.

I get um exemple in this article from offical documentation http://www.postfix.org/STANDARD_CONFIGU ... ull_client

Thx a lot.


Best regards
Locked