E-mail server not reflecting change.
Posted: Thu Apr 04, 2019 8:54 am
Hello,
I run NagiosXI 5.4.13 on CentOS 7.
I had set up an e-mail server, though it turned out I have a typo and now, when I enter the correct address the test mail arrives without problems, but the notifications themselves don't arrive. What puzzles me is that apart from the wrong mail server I have typed, I see messages for another server within our company, that Nagios shouldn't know about and also messages for relaying through googlemail.com servers.
I have seen some similar issues on the forums, but the solutions didn't work.(stop nagios, ndo2db, mysqlcheck -f -r -u root -pnagiosxi --all-databases --use_frm, restart mysql and start nagios and ndo2db).
I see the change is reflected in the table xi_options but for some reason mails are not sent to it.
I have inspected
/usr/local/nagiosxi/tmp/phpmailer.log - here I don't see messages for the notifications, only for the test mails
/var/log/maillog - here I see messages for wrong mail servers.
P.S. I found out that the server that is within our company and Nagios shouldn't know about is one of our relays, but this still doesn't explain why I receive an e-mail with the test and I get: "stat=Deferred: Connection timed out with <relay server name>" for the actual notifications. Can you please shed some light on the logic differences between the test mail and the actual mail?
P.P.S. The googlemail server disappeared from the logs after restart of the machine(still don't know why it was there in the first place and why Nagios was trying to connect to it)
I run NagiosXI 5.4.13 on CentOS 7.
I had set up an e-mail server, though it turned out I have a typo and now, when I enter the correct address the test mail arrives without problems, but the notifications themselves don't arrive. What puzzles me is that apart from the wrong mail server I have typed, I see messages for another server within our company, that Nagios shouldn't know about and also messages for relaying through googlemail.com servers.
I have seen some similar issues on the forums, but the solutions didn't work.(stop nagios, ndo2db, mysqlcheck -f -r -u root -pnagiosxi --all-databases --use_frm, restart mysql and start nagios and ndo2db).
I see the change is reflected in the table xi_options but for some reason mails are not sent to it.
I have inspected
/usr/local/nagiosxi/tmp/phpmailer.log - here I don't see messages for the notifications, only for the test mails
/var/log/maillog - here I see messages for wrong mail servers.
P.S. I found out that the server that is within our company and Nagios shouldn't know about is one of our relays, but this still doesn't explain why I receive an e-mail with the test and I get: "stat=Deferred: Connection timed out with <relay server name>" for the actual notifications. Can you please shed some light on the logic differences between the test mail and the actual mail?
P.P.S. The googlemail server disappeared from the logs after restart of the machine(still don't know why it was there in the first place and why Nagios was trying to connect to it)