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.
Apr 04 08:37:46 HOSTNAME sendEmail[15088]: ERROR => Connection attempt to stmp.gmail.com:587 failed: IO::Socket::INET6: getaddrinfo: Name or service not known
Apr 04 08:37:46 HOSTNAME sendEmail[15088]: ERROR => Connection attempt to stmp.gmail.com:587 failed: IO::Socket::INET6: getaddrinfo: Name or service not known
I think you entered the hostname incorrectly, it should be smtp.gmail.com not stmp.gmail.com
Ok, one last issue (I hope): The command works in the terminal, but no notifications are sent. What do I need to add to the commands/host config to make that happen?
The command you had specified previously for the notify-host-by-email and notify-service-by-email has specified several $USERx$ variables, you should verify they are set correctly, and that those commands are specified for contacts in the contact configuration.
If they are, I would look in the nagios.log to see if the notification commands are getting triggered and if there are any errors like there were before