+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
*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 ...
  1. #1
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    62

    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;

    1. Change the email address in contacts.cfg to mine
    2. install mailx as per nagios instructions
    3. 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??

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,690
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347
    Forgetting nagios for a second, can you send mail from the terminal using the mail command?

  3. #3
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    62
    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

  4. #4
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    62
    Ok from the command line i did the following:

    mail -s "this is a test" myemail@mywork.sch.uk
    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??

  5. #5


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,690
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347
    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.

  6. #6
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    62
    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

  7. #7


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,690
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347
    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=, 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)

  8. #8
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    62
    checked it and it's empty, nothing, nada, zilch..........

  9. #9

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Install the 'ssmtp' package and configure /etc/ssmtp/ssmtp.conf to suit your network enviroment.

  10. Thanks to Geoff from:

    ICTNUT (21st August 2008)

  11. #10


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,690
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347
    It suggests you don't have an MTA.

    Do the nagios instructions tell you to use apt-get/aptitude or install from a deb?

  12. Thanks to kmount from:

    ICTNUT (21st August 2008)

  13. #11
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    62
    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......

  14. #12


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,690
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347
    Woo

  15. #13
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    62
    We have email from nagios YEY!

    Many thanks guys.

  16. #14


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,690
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347
    Now all we need is for Nagios to make coffee and cookies.

  17. #15
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    288
    Thank Post
    15
    Thanked 28 Times in 23 Posts
    Rep Power
    18
    EDIT: Came back and posted this far too late.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Nagios - do you use it?
    By somabc in forum *nix
    Replies: 20
    Last Post: 20th August 2008, 08:19 PM
  2. ePortal ARGhhhh!!
    By TekkyMatt in forum MIS Systems
    Replies: 9
    Last Post: 28th June 2007, 04:03 PM
  3. Arghhhh ...I'm meeeeltttting
    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
  •