Hi There,
I am having an issue with my NXI whereby the notification email are not being sent from NXI out of sudden.
We have configured the SMTP settings on NXI and it has been worked well for the past one year without any issue but the last few days its stopped sending notifications. I tries to send Test mail and the error below appears as attached. We have not made changes from our O365 perspective as well. Kindly advise as we are not able to receive notifications anymore.
* Have attached my system profile.
SMTP Connect Failed. Error sending email Notifications
-
phaandiyan2412
- Posts: 13
- Joined: Tue Apr 06, 2021 11:56 pm
SMTP Connect Failed. Error sending email Notifications
You do not have the required permissions to view the files attached to this post.
Re: SMTP Connect Failed. Error sending email Notifications
Hi,
In your email settings please tick the checkbox to enable logging,
then try to send a test email. Then share the /usr/usr/local/nagiosxi/tmp/phpmailer.log
with us.
Thanks!
In your email settings please tick the checkbox to enable logging,
then try to send a test email. Then share the /usr/usr/local/nagiosxi/tmp/phpmailer.log
with us.
Thanks!
-
phaandiyan2412
- Posts: 13
- Joined: Tue Apr 06, 2021 11:56 pm
Re: SMTP Connect Failed. Error sending email Notifications
Hi Greg,
This is the log that I get:
2022-02-14 21:52:19 Connection: opening to smtp.office365.com:587, timeout=300, options=array ()
2022-02-14 21:52:19 Connection: opened
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "220 SI2PR06CA0016.outlook.office365.com Microsoft ESMTP MAIL Service ready at Mon, 14 Feb 2022 21:52:19 +0000"
2022-02-14 21:52:19 SERVER -> CLIENT: 220 SI2PR06CA0016.outlook.office365.com Microsoft ESMTP MAIL Service ready at Mon, 14 Feb 2022 21:52:19 +0000
2022-02-14 21:52:19 CLIENT -> SERVER: EHLO 192.168.100.67
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-SIZE 157286400"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-PIPELINING"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-DSN"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-STARTTLS"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-8BITMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-BINARYMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-CHUNKING"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250 SMTPUTF8"
2022-02-14 21:52:19 SERVER -> CLIENT: 250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2022-02-14 21:52:19 CLIENT -> SERVER: STARTTLS
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "220 2.0.0 SMTP server ready"
2022-02-14 21:52:19 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2022-02-14 21:52:19 CLIENT -> SERVER: EHLO 192.168.100.67
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-SIZE 157286400"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-PIPELINING"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-DSN"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-AUTH LOGIN XOAUTH2"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-8BITMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-BINARYMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-CHUNKING"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250 SMTPUTF8"
2022-02-14 21:52:19 SERVER -> CLIENT: 250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2022-02-14 21:52:19 Auth method requested: UNKNOWN
2022-02-14 21:52:19 Auth methods available on the server: LOGIN,XOAUTH2
2022-02-14 21:52:19 Auth method selected: LOGIN
2022-02-14 21:52:19 CLIENT -> SERVER: AUTH LOGIN
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6"
2022-02-14 21:52:19 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2022-02-14 21:52:19 CLIENT -> SERVER: aHNvY0Bkd2VsbHRlYy5hc2lh
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6"
2022-02-14 21:52:19 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2022-02-14 21:52:19 CLIENT -> SERVER: VGVjaER3ZWxsQDEyMzQh
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [SI2PR06CA0016.apcprd06.prod.outlook.com]"
2022-02-14 21:52:19 SERVER -> CLIENT: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [SI2PR06CA0016.apcprd06.prod.outlook.com]
2022-02-14 21:52:19 SMTP ERROR: Password command failed: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [SI2PR06CA0016.apcprd06.prod.outlook.com]
SMTP Error: Could not authenticate.
2022-02-14 21:52:19 CLIENT -> SERVER: QUIT
2022-02-14 21:52:19 SERVER -> CLIENT:
2022-02-14 21:52:19 SMTP ERROR: QUIT command failed:
2022-02-14 21:52:19 Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting[/b][/i][/b][/color][/color]
This is the log that I get:
2022-02-14 21:52:19 Connection: opening to smtp.office365.com:587, timeout=300, options=array ()
2022-02-14 21:52:19 Connection: opened
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "220 SI2PR06CA0016.outlook.office365.com Microsoft ESMTP MAIL Service ready at Mon, 14 Feb 2022 21:52:19 +0000"
2022-02-14 21:52:19 SERVER -> CLIENT: 220 SI2PR06CA0016.outlook.office365.com Microsoft ESMTP MAIL Service ready at Mon, 14 Feb 2022 21:52:19 +0000
2022-02-14 21:52:19 CLIENT -> SERVER: EHLO 192.168.100.67
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-SIZE 157286400"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-PIPELINING"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-DSN"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-STARTTLS"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-8BITMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-BINARYMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-CHUNKING"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250 SMTPUTF8"
2022-02-14 21:52:19 SERVER -> CLIENT: 250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2022-02-14 21:52:19 CLIENT -> SERVER: STARTTLS
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "220 2.0.0 SMTP server ready"
2022-02-14 21:52:19 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2022-02-14 21:52:19 CLIENT -> SERVER: EHLO 192.168.100.67
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-SIZE 157286400"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-PIPELINING"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-DSN"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-AUTH LOGIN XOAUTH2"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-8BITMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-BINARYMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250-CHUNKING"
2022-02-14 21:52:19 SMTP -> get_lines(): $data is "250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING"
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "250 SMTPUTF8"
2022-02-14 21:52:19 SERVER -> CLIENT: 250-SI2PR06CA0016.outlook.office365.com Hello [211.25.61.138]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2022-02-14 21:52:19 Auth method requested: UNKNOWN
2022-02-14 21:52:19 Auth methods available on the server: LOGIN,XOAUTH2
2022-02-14 21:52:19 Auth method selected: LOGIN
2022-02-14 21:52:19 CLIENT -> SERVER: AUTH LOGIN
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6"
2022-02-14 21:52:19 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2022-02-14 21:52:19 CLIENT -> SERVER: aHNvY0Bkd2VsbHRlYy5hc2lh
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6"
2022-02-14 21:52:19 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2022-02-14 21:52:19 CLIENT -> SERVER: VGVjaER3ZWxsQDEyMzQh
2022-02-14 21:52:19 SMTP -> get_lines(): $data is ""
2022-02-14 21:52:19 SMTP -> get_lines(): $str is "421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [SI2PR06CA0016.apcprd06.prod.outlook.com]"
2022-02-14 21:52:19 SERVER -> CLIENT: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [SI2PR06CA0016.apcprd06.prod.outlook.com]
2022-02-14 21:52:19 SMTP ERROR: Password command failed: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [SI2PR06CA0016.apcprd06.prod.outlook.com]
SMTP Error: Could not authenticate.
2022-02-14 21:52:19 CLIENT -> SERVER: QUIT
2022-02-14 21:52:19 SERVER -> CLIENT:
2022-02-14 21:52:19 SMTP ERROR: QUIT command failed:
2022-02-14 21:52:19 Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting[/b][/i][/b][/color][/color]
Re: SMTP Connect Failed. Error sending email Notifications
Hi
It looks like Microsoft is enforcing TLS1.2 now. You will need to upgrade your php
if your verson is < 5.6. Run php -v from the command line to see your version.
To upgrade please use:
https://support.nagios.com/kb/article/n ... 7-860.html
Thanks
It looks like Microsoft is enforcing TLS1.2 now. You will need to upgrade your php
if your verson is < 5.6. Run php -v from the command line to see your version.
To upgrade please use:
https://support.nagios.com/kb/article/n ... 7-860.html
Thanks
-
phaandiyan2412
- Posts: 13
- Joined: Tue Apr 06, 2021 11:56 pm
Re: SMTP Connect Failed. Error sending email Notifications
Hi Greg,
This worked like a charm after the upgrade.
Email notifications is working like it used to be again.
Thanks a lot and really appreciate it.
Regards,
Phaandiyan Anparasan
This worked like a charm after the upgrade.
Email notifications is working like it used to be again.
Thanks a lot and really appreciate it.
Regards,
Phaandiyan Anparasan
Re: SMTP Connect Failed. Error sending email Notifications
Fantastic - glad you got it working.
Locking thread.
Locking thread.