Text Verification Times Out

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ecolgroveMOT
Posts: 64
Joined: Thu Aug 22, 2019 1:58 pm

Re: Text Verification Times Out

Post by ecolgroveMOT »

no i never knew there was a postfix file till you showed me, and the only one who edited any file was the last nagios tech support remote session. When he did it was a number value and then Sendmail started to work.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Text Verification Times Out

Post by tgriep »

Do you have a ticket number so I can look up what was done if there are any details?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecolgroveMOT
Posts: 64
Joined: Thu Aug 22, 2019 1:58 pm

Re: Text Verification Times Out

Post by ecolgroveMOT »

i have an email on october 9th with this in it

Please join my remote session in 5 minutes at the following URL:
https://xxxxxxxxxxxxxxxxxxxxxxxxx

Meeting Number:xxxxxxxxx
Call-in toll number (US/Canada) xxxxxxxxxxxxxxxxxxxxxx

Access Code
xxxxxxxxxxxxxxx

Thanks, and see you soon.
xxxxxxxxxxxxxx


For support questions, please use the Nagios Support Forums at https://support.nagios.com/forum/index.php
More links for various videos, articles, etc...
https://www.nagios.com/videos/
https://support.nagios.com/kb/
https://library.nagios.com/

and a follow up email with this in it

Hi Eric,

It was good working with you again this morning! Here's the quick rundown of what we found today.

We were able to get Sendmail working again. Postfix must have crashed at some point, and when it tried to restart, it was still configured to listen on IPv6 as well as IPv4, but in a previous session we disabled IPv6. When Postfix couldn't find ::1, it failed to start up. We just switched the protocol in /etc/postfix/main.cf from all to ipv4.

Then we started working on trying to send mail via smtp.office365.com.
We verified with nmap that the path to smtp.office365.com was open.
Ultimately we weren't able to get this resolved, so we're going to continue troubleshooting this on the forums. But for now you can send notifications via Sendmail.


Thank you for your time this morning, and have a great rest of your day!
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Text Verification Times Out

Post by tgriep »

Run this as root and post the output here.

Code: Select all

ip addr
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecolgroveMOT
Posts: 64
Joined: Thu Aug 22, 2019 1:58 pm

Re: Text Verification Times Out

Post by ecolgroveMOT »

[root@nagiosxi nagiosxi]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:6a:81:13 brd ff:ff:ff:ff:ff:ff
inet 10.50.106.235/24 brd 10.50.106.255 scope global noprefixroute dynamic eth0
valid_lft 501971sec preferred_lft 501971sec
[root@nagiosxi nagiosxi]#
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Text Verification Times Out

Post by tgriep »

Set the SMTP host to the following.

Code: Select all

ezaccessmot-com.mail.protection.outlook.com
Stop using smtp.outlook365.com as I think your credentials will not work with it but it will work with your corporate SMTP server.

Contact the administrator of the ezaccessmot-com.mail.protection.outlook.com server to have then check the log files when the test message is sent to see what the errors are.

Install tcpdump on the XI server if needed by running

Code: Select all

yum install tcpdump -y
Then run this to capture the data to the ezaccessmot-com.mail.protection.outlook.com server.

Code: Select all

tcpdump -i any -s 0 -w email.cap host ezaccessmot-com.mail.protection.outlook.com
Send a test message from the XI GUI, stop the tcpdump and add the email.cap file to the post.

We may not be able to see the full error as you are encrypting the traffic but it might help.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecolgroveMOT
Posts: 64
Joined: Thu Aug 22, 2019 1:58 pm

Re: Text Verification Times Out

Post by ecolgroveMOT »

so this is what nagios says from the web GUI Page
A test email was sent to nagiosalerts@ezaccessmot.com
----
Mailer said: [10-29-2019 16:04:22] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=ezaccessmot-com.mail.protection.outlook.com;port=587;smtpauth=true;security=tls), Referer: admin/testemail.php
An error occurred sending a test email!

Nagios Console
[root@nagiosxi nagiosxi]# tcpdump -i any -s 0 -w email.cap host ezaccessmot-com.mail.protection.outlook.com
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
^C4 packets captured
19 packets received by filter
0 packets dropped by kernel
[root@nagiosxi nagiosxi]# cat email.cap
▒ò▒qV▒▒]\>\L]jE<8▒@@▒a
2j▒h/;▒▒▒K▒(W▒▒r▒
Gowl
protectionoutV▒▒]▒?N>▒▒▒!E(@@!▒h/;▒
2j▒K▒▒▒(W▒P▒▒essmot-commail
V▒▒]▒?\L]jE<OJ@@֛
2j▒h/7▒▒▒K{ =▒r▒
GowV▒▒]▒@N>▒▒▒!E(@@%▒h/7▒
2j▒K▒▒{ >P▒e[
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Text Verification Times Out

Post by tgriep »

The email.cap file is not a text file that can be viewed using the cat command.
Can you download it from the Nagios server using a Secure copy program and then upload it to the post?
A couple of popular applications you can use are called WinSCP and Filezilla.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecolgroveMOT
Posts: 64
Joined: Thu Aug 22, 2019 1:58 pm

Re: Text Verification Times Out

Post by ecolgroveMOT »

It says file ext not allowed for attachment
ecolgroveMOT
Posts: 64
Joined: Thu Aug 22, 2019 1:58 pm

Re: Text Verification Times Out

Post by ecolgroveMOT »

I think this worked. It looks the same i was just able to rename it as a txt file.
You do not have the required permissions to view the files attached to this post.
Locked