Page 2 of 2
Re: Contacts/email configuration
Posted: Thu Apr 04, 2019 10:41 am
by LibrarianJoe
Also here's what I get back when I run the command:
Code: Select all
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
Re: Contacts/email configuration
Posted: Thu Apr 04, 2019 11:36 am
by scottwilkerson
LibrarianJoe wrote:Also here's what I get back when I run the command:
Code: Select all
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
Re: Contacts/email configuration
Posted: Fri Apr 05, 2019 12:49 pm
by LibrarianJoe
That fixed it! Thank you! I am typographically challenged, apparently!
Re: Contacts/email configuration
Posted: Fri Apr 05, 2019 1:07 pm
by LibrarianJoe
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?
Re: Contacts/email configuration
Posted: Fri Apr 05, 2019 2:14 pm
by scottwilkerson
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
Re: Contacts/email configuration
Posted: Mon Apr 08, 2019 1:31 pm
by LibrarianJoe
Thank you! Checked the variables and we're all good now, notifications are coming through.
Thank you so much for all your help!
Re: Contacts/email configuration
Posted: Mon Apr 08, 2019 3:31 pm
by ssax
That's great to hear, are we okay to lock the topic and mark it as resolved?