Page 1 of 1

Nagios is sending mails manually but alerts are not coming

Posted: Wed Jun 12, 2019 4:26 pm
by rnjie
i noticed that i stopped getting email alerts from nagios even though when i look at reports i see that the notification dispatcher actually sent the email notification. Any help will be appreciated

Re: Nagios is sending mails manually but alerts are not comi

Posted: Thu Jun 13, 2019 10:38 am
by benjaminsmith
Hello @rnjie,

Which MTA are you currently setup with - SMPT or the default MTA in Linux (typically Sendmail)?

Please verify the correct email settings. Go to Admin > System Config > Email Settings, and then click the Send a Test Email button. In some situations, there can be a firewall blocking outbound SMTP connections.

Often, if this is a connection issue, you can see this is the mail logs. Submit a custom notification and then tail the log file.

SMTP log (phpmailer)

Code: Select all

tail -f /usr/local/nagiosxi/tmp/phpmailer.log
Sendmail

Code: Select all

tail -f /var/log/maillog
Please PM me a copy of your profile for us to review. Thanks.

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket.

Re: Nagios is sending mails manually but alerts are not comi

Posted: Thu Jun 13, 2019 2:25 pm
by rnjie
thank you for your reply, i found the solution, our nagios was integrated into opsgenie and all email alerts was sent to opsgenie but we were not getting it all of a sudden, we later found out that the api key in nagios didnt match that for opsgenie, still dont know why the key changed. we corrected the key and could receive alerts again.
please close the case

Re: Nagios is sending mails manually but alerts are not comi

Posted: Thu Jun 13, 2019 2:44 pm
by benjaminsmith
Hello @rnjie,
we corrected the key and could receive alerts again.
please close the case
Great. Glad you got it sorted out. Closing.

Thank you for using the Nagios Support Forum.