Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Did you set up mail relay correctly? If not, then do so and try sending a mail. If you set it up, did you try to send a mail manually from that server to that email address? If not, then try as root, as a regular user and as the nagios user and check if any of the mails are getting sent out. You can check in the log files. And please remove your email address from your post, you're asking to be spammed.
Looking forwared to your participation in the forums.
Did you set up mail relay correctly? If not, then do so and try sending a mail. If you set it up, did you try to send a mail manually from that server to that email address? If not, then try as root, as a regular user and as the nagios user and check if any of the mails are getting sent out. You can check in the log files. And please remove your email address from your post, you're asking to be spammed.
Looking forwared to your participation in the forums.
Kind regards,
Eric
How to set up mail relay?? Should I have to configure SMTP and POSTFIX?? Please let me know in detail.
If you only want to relay your mail from the Nagios server, then Postfix alone will do the trick. There are a lot of howto guides on the internet, even to set it up to relay to GMail, so I invite you to search for one for your distro which you didn't mention. As a starting point you could have a look at this one. You're not going to find a detailed howto or step by step guide here.
SMTP is the protocol, Postfix is one of the programs that uses SMTP to send mail. Another one is Sendmail. So, basically if you set up SMTP with any SMTP capable program to relay your mail, yes it will work.
As I told you before, yes. If it's set up correctly that is. Since you seem to be inexperienced in the matter and/or technology I suggest you use Postfix instead of sendmail because it's a lot simpler to set up and use.
It not like I am not experienced. As I have a good experience in setting up cluster server and troubleshooting the errors in the cluster. But Nagios is new for me, so that is the reason I am posting my questions.
I wasn't criticizing you nor being condescending but setting up and troubleshooting a cluster with any clustered service is a completely different experience than setting up a relay mail server which in turn has nothing to do with Nagios. If you want Nagios to send out mails, you'll need to set up a mail relay like Postfix. Since Postfix is easier then Sendmail I advised you to use that one but feel free to use whatever you are comfortable with. Sorry if I offended you in any way, I was only trying to be helpful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.