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!
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.
I have installed Nagios on Ubuntu (according to the quick start guide) and it is currently monitoring the localhost, a router, and a Windows box (using NSClient++). Using the web interface, I am able to monitor all of this (under Service Details) and it all works fine. I need to know how to set up e-mail notification so that I may get the alerts in my e-mail (gmail). Any real help would be much appreciated.
Which version? 2 or 3? In version2 check the contacts and contactgroups configs.
It's version 3...
I have installed mailx and also installed sendmail and also changed the commands.cfg to “/usr/bin/mail” from just “/bin/mail”. I am not sure if it’s a nagios issue (almost sure that it’s not) but I really don’t know how to check sendmail to determine if it’s actually working properly.
It's version 3...
I have installed mailx and also installed sendmail and also changed the commands.cfg to “/usr/bin/mail” from just “/bin/mail”. I am not sure if it’s a nagios issue (almost sure that it’s not) but I really don’t know how to check sendmail to determine if it’s actually working properly.
Hi,
I think you put the details in contact and contact group. If so then check ur mail service is running? check if mails are in queue and most important check the logs of mail service. I have done this configuration in nogios + postfix combination..there also I got sometime same problem due to postfix was stop.
I think for such small configuration postfix is rather easy solution.
One more thing if you have mail server at your end then it need not require to set mail server at nagios.
I think you put the details in contact and contact group. If so then check ur mail service is running? check if mails are in queue and most important check the logs of mail service. I have done this configuration in nogios + postfix combination..there also I got sometime same problem due to postfix was stop.
I think for such small configuration postfix is rather easy solution.
One more thing if you have mail server at your end then it need not require to set mail server at nagios.
Thanks much!
I will try using Postfix instead (hopefully it will work).
I am having the same problem with Nagios and Ubuntu. I am trying to get E-Mail notifications working in Nagios as well. I have configured Nagios to monitor 20 hosts and over 60 services. I am running Nagios on Ubuntu 7.10 and I am extremly impressed with the flexibility of the system.
The problem is that I cannot for the life of me get E-Mail notifications working. I have the following configurations.
I have installed mailx and followed the Ubuntu Quickstart Guide. I found some instructions on another thread that reccomended that I change the permissions on the /usr/local/nagios/var/rw/nagios.cmd file to 775. This did not make a difference.
To further troubleshoot the issue I looked at the nagios.log file and noticed the following message that I thought was relevant,
Quote:
[1215020779] SERVICE NOTIFICATION: nagiosadmin;host1;T.I.A.;CRITICAL;notify-service-by-email;Connection refused
[1215020781] SERVICE NOTIFICATION: jarm;host1;T.I.A.;CRITICAL;notify-service-by-email;Connection refused
I discovered this post after having the same problem.
I configured NAGIOS on a Fedora 10 server.
First I discovered that my DNS was not configured correctly on my linux box. I used the following commands to configure my hostname, DNS servers and DNS search domain:
Second I realized that there was no MX record in my domain for my mail server, it's an Exchange server that everyone accesses via OWA and an external mail scrubbing service is used so the lack of internal MX was never picked up.
After I corrected the DNS issue and created the MX record for my mail server the NAGIOS notifications started flowing like the salmon of Capistrano. ;-)
In case that doesn't work for you, install ALPINE and try to send some test emails:
yum -y install alpine
I hope this helps you and anyone else who is trying to configure NAGIOS notifications.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.