*nix Thread, Nagios -> Email Arghhhh! in Technical; Hi All,
I have done a clean vanilla LAMP install (Ubuntu 7.10 Server) and then install Nagios 3.03 with the ...
-
20th August 2008, 06:36 PM #1 Nagios -> Email Arghhhh!
Hi All,
I have done a clean vanilla LAMP install (Ubuntu 7.10 Server) and then install Nagios 3.03 with the plugins.
Now all is working fine aprt from emails are not getting sent.
This is what I have done;
- Change the email address in contacts.cfg to mine
- install mailx as per nagios instructions
- changed email config in commands.cfg to show /usr/bin/mail and not /bin/mail
Now when I bring a host down I get no email, I have always used nagios without email notification, more of a visual thing but Iwould like to get this sorted now.
Any ideas of what I need to look for??
-
-
IDG Tech News
-
20th August 2008, 06:42 PM #2 Forgetting nagios for a second, can you send mail from the terminal using the mail command?
-
-
20th August 2008, 07:28 PM #3 hmm good point have not tried that, don't have remote server access to this server so i'lltryit in the morning....
To be continued
-
-
21st August 2008, 09:17 AM #4 Ok from the command line i did the following:
then it just sits there doing nothing until I escape out, so it would look like email is not setup correctly on the box.
Any ideas anyone??
-
-
21st August 2008, 09:28 AM #5 It will sit there as that's expected behaviour for the command you entered.
If you put a single period . and press enter and enter again it should exit cleanly.
-
-
21st August 2008, 09:37 AM #6 OK did it agin and got:
.
Cc:
Null message body; hope that's ok
this then returned me back to the command prompt and as yet no email
-
-
21st August 2008, 09:43 AM #7 Unsure about ubuntu but look in /var/log/mail.log for your email to see what it says.
Aug 21 10:28:49 core postfix/smtp[12009]: 6588B4A403C: to=<me@lala.org>, relay=ns1.bob.com[82.3.45.5]:25, delay=33, delays=0.01/0.03/30/3.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as BDD559BC07B)
-
-
21st August 2008, 09:52 AM #8 checked it and it's empty, nothing, nada, zilch..........
-
-
21st August 2008, 09:54 AM #9 Install the 'ssmtp' package and configure /etc/ssmtp/ssmtp.conf to suit your network enviroment.
-
Thanks to Geoff from:
ICTNUT (21st August 2008)
-
21st August 2008, 10:00 AM #10 It suggests you don't have an MTA.
Do the nagios instructions tell you to use apt-get/aptitude or install from a deb?
-
Thanks to kmount from:
ICTNUT (21st August 2008)
-
21st August 2008, 10:25 AM #11
Install the 'ssmtp' package and configure /etc/ssmtp/ssmtp.conf to suit your network enviroment.
Spot on Geoff: We now have mail from the command line 
Will now go and trip up nagios to see if mail comes from there also, I may return......
-
-
21st August 2008, 10:52 AM #12 Woo
-
-
21st August 2008, 10:58 AM #13 We have email from nagios YEY! 
Many thanks guys.
-
-
21st August 2008, 11:02 AM #14 Now all we need is for Nagios to make coffee and cookies.
-
-
21st August 2008, 01:22 PM #15 EDIT: Came back and posted this far too late.
-
SHARE:
Similar Threads
-
Replies: 20
Last Post: 20th August 2008, 08:19 PM
-
By TekkyMatt in forum MIS Systems
Replies: 9
Last Post: 28th June 2007, 04:03 PM
-
By Jake in forum General Chat
Replies: 50
Last Post: 5th July 2006, 09:37 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules