An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Does your smtp server require authentication? SSL, TLS? Are you connecting via directives in a /etc/postfix/main.cf file? We would need more information to diagnose your issue. Please attach the output of:

This would appear to be a misconfigured sendmail.cf file, or your email server requires authentication, or your trying to send an email to an account outside of your domain. As this is clearly a sendmail issue rather than a nagios issue, you're more likely to find a solution on a general linux board than here on the Nagios Support Forum.

Thank you!

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

It finally worked after modifying the /etc/mail.rc config file (I've removed previously added config file in this file). The test email using mailx it sent successfully to my corporate email.

However, email notification still didn't work after doing some testing by shutting down the target machine. Below is command.cfg config file on my nagioscore:

################################################################################## SAMPLE NOTIFICATION COMMANDS## These are some example notification commands. They may or may not work on# your system without modification. As an example, some systems will require# you to use "/usr/bin/mailx" instead of "/usr/bin/mail" in the commands below.#################################################################################

@nib01, Please force a few checks into a critical state and then send in the /usr/local/nagios/var/nagios.log file. I would like to see whether nagios is attempting to send a notification. This problem could be related to a general notification settings misconfiguration.

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

The below link is facing the same issue and he removed all the 'n" on both host /service command. So, I've removed all the extra "\n" within "command.cfg config file", but same results. Please see attached file about the nagios error log file .

So there may be a missing " somewhere but the commands do look correct.Except for the notify-host-by-email command, you should remove the -v (verbose option) from the command.Make sure there is not an error in the /etc/mail.rc config file that is causing the missing " message.

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!

I've removed "-v" from the command. I checked/review /etc/mail.rc config file, in fact I never edit this file before since nagios core was installed on the system. I've attached the mail.rc file as well as reference.

Who is online

Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.