We have installed Nagios Core 4.2.0 and for some reason our emails notifications are not working. It was working until 3 days ago however post migration ( now that everything is in production) email notification are not working.
We are using mutt in order to send emails.
If I try to run this command
Code: Select all
echo " Test" | /usr/bin/mutt -s "test" myemailaddress
However email sent from Nagios are not coming in.
Contact.cfg
Code: Select all
define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
email myemailaddress ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}
Code: Select all
Sep 4 17:42:27 sdlmonitor2 nagios: SERVICE NOTIFICATION: nagiosadmin;18.11;Logged-In Users;WARNING;notify-service-by-email;USERS WARNING - 8 users currently logged in
Sep 4 17:43:27 sdlmonitor2 nagios: Warning: Return code of 127 for check of service 'HTTP' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Sep 4 17:45:57 sdlmonitor2 nagios: SERVICE NOTIFICATION: nagiosadmin;148.12;check_RELIANCE;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 10 seconds.
Sep 4 17:47:27 sdlmonitor2 nagios: SERVICE NOTIFICATION: nagiosadmin;18.11;Logged-In Users;WARNING;notify-service-by-email;USERS WARNING - 8 users currently logged in
Sep 4 17:48:27 sdlmonitor2 nagios: Warning: Return code of 127 for check of service 'HTTP' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.
Any help would be much appreciated.
Thanks
Ramesh Kumar