Unable to receive notification/alerts mail from nagios
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Did you set up a mail transfer agent to send out the mails? Nagios does not come with one included so you'll need to take care of that yourself. In other words, can you send out mails from the command line on that same machine?
You do not need a DNS server, as long as your box is able to resolve names normally using an external DNS (e.g. provided by your ISP). In all likelihood, your ISP filters outgoing SMTP traffic in an effort to limit spam. You probably need to relay outgoing mail through your ISP's SMTP server -- see this page for details (it's for Ubuntu, but the process should be the same on any distro). If this doesn't work, you'll need to check your postfox logs to figure out why mail is not being delivered.
Last edited by btmiller; 01-26-2013 at 10:55 AM.
No, the relayhost needs to be the name or IP address of your ISP's SMTP server. Do they provide that for you? If not, perhaps your machine is allowed to directly make outgoing SMTP connections and you do not need a relay host. Is this machine on a residential Internet connection or in a data center/colocation facility or a VM with a cloud hosting provider? Generally, ISPs filter traffic very differently between these types of machines. Most ISPs don't allow residential users to make arbitrary SMTP connections, as this has been abused by various sorts of malware. In any case, your ISP/provider should be able to tell you if there are any restrictions on outgoing mail from their network. If they require you to forward all mail through their SMTP server, you should set this as the relayhost. If not, you need not bother configuring it, but maybe gmail is rejecting your mail for other reasons, again check your logs to see what is happening!
This machine is in the data center and I have set up the data center. we have 2MBPS lease line. The ISP has given us five IPs, subnet mask as 255.25.255.248 and one gateway IP with two DNS IP's. So I have configured one IP on firewall and I have mapped my system IP (192.168.x.xx) with the external IP given by ISP. So I can access my system from anywhere. ISP didnt give us any SMTP server IP and there are no restrictions and they didn't tell us that all mails should be forwarded from their SMTP server. That means it is completely open.