Hello Team,
Here is the brief of notification issue we are facing.
Hosted Nagios XI on Azure cloud with public IP assigned and trying to send email notification but could not do so. We have configured email settings as per below Microsoft document.
https://docs.microsoft.com/en-us/exchan ... submission
Below is the error we received when try to generate test notification.
A test email was sent to [email protected]
----
Mailer said: [12-31-2021 05:18:07] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.office365.com;port=587;smtpauth=true;security=tls), Referer: admin/testemail.php
An error occurred sending a test email!
Regards
QP
Unable to send email notification
Re: Unable to send email notification
Hi QPUSER
Could you generate a system profile and PM it to me so we can take a look ? Recently a number of customers have been having problems with Office365 as they start to require TLS1.2 for SMTPS connections. A PHP version of 5.6 or greater is required to send messages via SMTPS with NagiosXI.
======================
To send us your system profile:
======================
Login to the Nagios XI GUI using a web browser.
Click the "Admin" (Top) -> "System Profile" Menu (Left)
Click the "Download Profile" button
If you know that you have an older version of PHP (older than 5.6) and would like to upgrade we have a knowledge base article on upgrading to PHP 7. As always, we encourage you to go through this process with test server first, which is specifically allowed by our licensing agreement.
https://support.nagios.com/kb/article/n ... 7-860.html
Nagios License Entitlements
https://support.nagios.com/kb/article.php?id=145
"With every purchase we offer 3 separate activation of XI licenses. One for production, one for testing, and one for high availability. We always recommend upgrading on a test server first before making changes to the production server."
Thanks and Best Regards,
Keith
Could you generate a system profile and PM it to me so we can take a look ? Recently a number of customers have been having problems with Office365 as they start to require TLS1.2 for SMTPS connections. A PHP version of 5.6 or greater is required to send messages via SMTPS with NagiosXI.
======================
To send us your system profile:
======================
Login to the Nagios XI GUI using a web browser.
Click the "Admin" (Top) -> "System Profile" Menu (Left)
Click the "Download Profile" button
If you know that you have an older version of PHP (older than 5.6) and would like to upgrade we have a knowledge base article on upgrading to PHP 7. As always, we encourage you to go through this process with test server first, which is specifically allowed by our licensing agreement.
https://support.nagios.com/kb/article/n ... 7-860.html
Nagios License Entitlements
https://support.nagios.com/kb/article.php?id=145
"With every purchase we offer 3 separate activation of XI licenses. One for production, one for testing, and one for high availability. We always recommend upgrading on a test server first before making changes to the production server."
Thanks and Best Regards,
Keith
Re: Unable to send email notification
Hi Keith,
Greeting of the day!!
Still we are facing the SMTP integration issue. I have followed the https://support.nagios.com/kb/article/n ... 7-860.html and upgraded to PHP 7 using command (rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm) because we are using CenOS 7.9.
Refer the attached system profile.
Looking for your prompt support on this.
Warm regards,
QPUser
Greeting of the day!!
Still we are facing the SMTP integration issue. I have followed the https://support.nagios.com/kb/article/n ... 7-860.html and upgraded to PHP 7 using command (rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm) because we are using CenOS 7.9.
Refer the attached system profile.
Looking for your prompt support on this.
Warm regards,
QPUser
Re: Unable to send email notification
Hi QPUser,
In the system profile you sent the version of PHP is still showing as 5.4.16. Did you run all the non-CentOS specific instructions in the guide when you updated to PHP7 (I'll append them below for easy review) ? There is also an extra step for CentOS7 at the end of the document to restart the httpd server that people often miss.
https://support.nagios.com/kb/article/n ... 7-860.html
Thanks and Best Regards,
Keith
In the system profile you sent the version of PHP is still showing as 5.4.16. Did you run all the non-CentOS specific instructions in the guide when you updated to PHP7 (I'll append them below for easy review) ? There is also an extra step for CentOS7 at the end of the document to restart the httpd server that people often miss.
https://support.nagios.com/kb/article/n ... 7-860.html
Code: Select all
yum -y install yum-utils
PHPTZ=$(grep -s '^date.timezone' /etc/php.ini | awk '{print $3}')
yum -y remove php-*
yum-config-manager --enable remi-php74
yum -y install php php-imap php-opcache php-devel php-gd php-ldap php-mbstring php-pdo php-pdo-dblib php-mysqlnd php-pgsql php-pear php-pecl-ssh2 php-pgsql php-process php-snmp php-xml php-odbc
sed -i "s:;date.timezone =.*:date.timezone = ${PHPTZ}:" /etc/php.ini
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar zxf xi-latest.tar.gz
cd /tmp/nagiosxi
rm -rf /etc/php.d/sourceguardian.ini
./init.sh
sed -i '/^PHP script/d' xi-sys.cfg
sed -i '/^1)/d' xi-sys.cfg
sed -i '/^2)/d' xi-sys.cfg
sed -i '/^3)/d' xi-sys.cfg
./install-sourceguardian-extension.sh
systemctl restart httpd
Keith
Re: Unable to send email notification
Hi Keith,
I did restarted the http last time. Anyway I have followed below instruction. Post doing this, php version got update but when I logged in Nagios GUI everything is gone. Just getting left PAN and unable to any see dashboard OR CIs which I had added in tool.
Since, I am using standalone PROD instance only, don't have any other DEV,TEST instance. Hence, I have restored the snapshot to avoid further business outage.
It will be great if we can have webex to fix it.
Thank you.
Warm regards,
QP User
I did restarted the http last time. Anyway I have followed below instruction. Post doing this, php version got update but when I logged in Nagios GUI everything is gone. Just getting left PAN and unable to any see dashboard OR CIs which I had added in tool.
Code: Select all
yum -y install yum-utils
PHPTZ=$(grep -s '^date.timezone' /etc/php.ini | awk '{print $3}')
yum -y remove php-*
yum-config-manager --enable remi-php74
yum -y install php php-imap php-opcache php-devel php-gd php-ldap php-mbstring php-pdo php-pdo-dblib php-mysqlnd php-pgsql php-pear php-pecl-ssh2 php-pgsql php-process php-snmp php-xml php-odbc
sed -i "s:;date.timezone =.*:date.timezone = ${PHPTZ}:" /etc/php.ini
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar zxf xi-latest.tar.gz
cd /tmp/nagiosxi
rm -rf /etc/php.d/sourceguardian.ini
./init.sh
sed -i '/^PHP script/d' xi-sys.cfg
sed -i '/^1)/d' xi-sys.cfg
sed -i '/^2)/d' xi-sys.cfg
sed -i '/^3)/d' xi-sys.cfg
./install-sourceguardian-extension.sh
systemctl restart httpdIt will be great if we can have webex to fix it.
Thank you.
Warm regards,
QP User
Re: Unable to send email notification
Hi QP,
I'm sorry to hear that didn't work out as intended. Probably the best thing to do would be to clone the image that you have, bring it up in a test environment with Internet access and walk through the steps again. If the problem reoccurs, or you would like to skip the process, please submit a support ticket and we can then take a look in more detail and see if we can get you through the process. Here is the link for submitting a support ticket:
https://support.nagios.com/tickets/
Thanks and Best Regards,
Keith
I'm sorry to hear that didn't work out as intended. Probably the best thing to do would be to clone the image that you have, bring it up in a test environment with Internet access and walk through the steps again. If the problem reoccurs, or you would like to skip the process, please submit a support ticket and we can then take a look in more detail and see if we can get you through the process. Here is the link for submitting a support ticket:
https://support.nagios.com/tickets/
Thanks and Best Regards,
Keith
Re: Unable to send email notification
Hi Keith,
I have raised the case and case ID is #808189.
Thanks & regards,
QP
I have raised the case and case ID is #808189.
Thanks & regards,
QP
Re: Unable to send email notification
Closing the post to work on the issue in the ticket.
Be sure to check out our Knowledgebase for helpful articles and solutions!