Search found 6 matches

by m.siib
Tue Dec 09, 2014 8:17 am
Forum: Open Source Nagios Projects
Topic: Problem with mail notifications
Replies: 9
Views: 2742

Re: Problem with mail notifications

I got it working.

I added the following to /etc/mail/sendmail.mc

Code: Select all

define(`MAIL_HUB', `domain.com.')dnl
define(`LOCAL_RELAY', `domain.com.')dnl



EDIT: Locked, glad you have it working.
by m.siib
Fri Dec 05, 2014 12:35 pm
Forum: Open Source Nagios Projects
Topic: Problem with mail notifications
Replies: 9
Views: 2742

Re: Problem with mail notifications

I switched back to sendmail and bsd-mailx. I find that it works to send to external recipients, but not internal. I think the problem is that I'm sending to [email protected], but the nagios host is nagios.domain.com so maybe it's trying to deliver locally. What do I need to tweak?
by m.siib
Thu Dec 04, 2014 4:00 pm
Forum: Open Source Nagios Projects
Topic: Problem with mail notifications
Replies: 9
Views: 2742

Re: Problem with mail notifications

Internal.
by m.siib
Thu Dec 04, 2014 8:32 am
Forum: Open Source Nagios Projects
Topic: Problem with mail notifications
Replies: 9
Views: 2742

Re: Problem with mail notifications

Here are the notify commands - defaults. In troubleshooting I've also tried pointing to /bin/mail depending on the mailer. # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotificatio...
by m.siib
Wed Dec 03, 2014 5:03 pm
Forum: Open Source Nagios Projects
Topic: Problem with mail notifications
Replies: 9
Views: 2742

Re: Problem with mail notifications

As root or nagios:

Code: Select all

root@nagios:~# mail to [email protected]
Cc:
Subject: test

root@nagios:~#

I'm using the defaults in Nagios.
by m.siib
Tue Dec 02, 2014 2:27 pm
Forum: Open Source Nagios Projects
Topic: Problem with mail notifications
Replies: 9
Views: 2742

Problem with mail notifications

Running Nagios 4.0.8 on Debian 7. Mail notifications are not being sent. I can send test email from the command line. Checked commands.cfg to check the path to mail and it is correct. Where can I look to troubleshoot? I've done it many times before with no issue, but this one is puzzling. If you wan...