Nagios not sending e-mail notification

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nagaraju259
Posts: 4
Joined: Wed Aug 16, 2017 2:54 am

Nagios not sending e-mail notification

Post by nagaraju259 »

Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... =7&t=28821

In the future, please create a new thread and link to the old one instead of adding on.


Hi Team,

I am not getting the mail notifications from nagios.

In nagios logs we can see the below errors

[1512022520] SERVICE NOTIFICATION: nagiosadmin;localhost;HTTP;WARNING;notify-service-by-email;HTTP WARNING: HTTP/1.1 403 Forbidden - 4183 bytes in 0.002 second response time
[1512022520] wproc: NOTIFY job 1580 from worker Core Worker 27393 is a non-check helper but exited with return code 2
[1512022520] wproc: host=localhost; service=HTTP; contact=nagiosadmin
[1512022520] wproc: early_timeout=0; exited_ok=1; wait_status=512; error_code=0;
[1512022520] wproc: stderr line 01: /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
[1512022520] wproc: stderr line 02: /bin/sh: -c: line 1: syntax error: unexpected end of file


Please help me in resolving the issues.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios not sending e-mail notification

Post by lmiltchev »

Do you see any config errors when you verify configuration?

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Note: If the path to the binary and the main config file is different, please modify your command accordingly.

Can you post the definitions for the HTTP service on localhost, and all other relevant definitions, i.e. the service template used by HTTP (if any), contact/contact groups, notify-service-by-email, etc.?

Do you see any clues in the mail log?

Code: Select all

tail -100 /var/log/maillog
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked