LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 01-05-2013, 08:05 AM   #1
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 56

Rep: Reputation: 1
Not receiving nagios alerts


Hi,
I have installed nagios in centos 5.8. I have entered my mail in contats.cfg but I have not yet received any mail/alerts from nagios. Please help.

Last edited by rahul.buragohain; 01-05-2013 at 08:27 AM.
 
Old 01-05-2013, 08:09 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and welcome to LinuxQuestions,

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
 
Old 01-05-2013, 08:14 AM   #3
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EricTRA View Post
Hello and welcome to LinuxQuestions,

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.
 
Old 01-05-2013, 08:18 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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.

Kind regards,

Eric
 
Old 01-05-2013, 08:24 AM   #5
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 1
Hi Eric,

If I configure SMTP, will it work??
 
Old 01-05-2013, 08:27 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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.

Kind regards,

Eric
 
Old 01-05-2013, 08:34 AM   #7
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 1
Hi eric,

As you old about about sendmail, so if I configure only send mail, shall I receive mail alerts from nagios??
 
Old 01-05-2013, 08:38 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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.

Kind regards,

Eric
 
Old 01-05-2013, 08:42 AM   #9
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 1
Hi eric,

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.
 
Old 01-05-2013, 08:51 AM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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.

Kind regards,

Eric
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nagios alerts help mahmoud Linux - Software 8 01-07-2014 08:41 AM
Nagios mail Alerts hoshie66 Linux - Server 2 09-17-2009 08:25 AM
Not receiving alerts from snort on ftester injected packets AndreaSpooky Linux - Security 3 06-29-2009 03:45 PM
Nagios Server Alerts deibertine Linux - Newbie 2 04-03-2009 07:00 PM
Nagios Alerts on Linux sachinh Linux - Newbie 1 11-05-2008 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration