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.
email notifications (postfix)
Re: email notifications (postfix)
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
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)
you may be able to gleen some information by following the maillog on the Nagios system
(location may vary by OS)
Code: Select all
tail -f /var/log/maillog-
felipe.costa
- Posts: 6
- Joined: Thu Jan 03, 2013 12:47 pm
Re: email notifications (postfix)
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
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