Ping Monitor: check a TCP port, and email alerts failing with QQ Mail SMTP

5 posts

helius Guest
20 Aug

Hello, I really like this software. Could you add a function for TCP port detection, such as www.google.com 443? This way, I can also check if my program's port is in a listening state. Thank you

Andrew SoftPerfect
21 Aug

Good idea, a TCP port check would suit the program well.

I want to think it through first, though. There'll be other things worth checking one day, an HTTP request for example, and I'd rather build it so those can be added later than bolt a port check on the side. No date yet, but it's on my list.

Andrew SoftPerfect
31 Aug

It's done: Ping Monitor 26.8 adds optional TCP and HTTP/S probes per host. Right-click a host, choose Edit, click Probes and then Add.

For your own program a TCP port probe is the right one. For something like www.google.com 443 I'd use an HTTP/S probe instead. It checks that the server actually answers with the status code you expect, and optionally that the page contains a given text, rather than only that the port is open. A port can accept a connection while the service behind it is broken.

A host whose probe fails turns amber instead of red, and there's a Failed probes alert in File → Settings → Alerts.

You can get it from the Ping Monitor page.

helius Guest
31 Aug

The response speed is too fast. Thank you for adding new features to the program.
I intend to conduct a test, but an error occurred in the configuration for sending emails. I am using an email address from https://mail.qq.com/ and have enabled the SMTP outbound protocol, with the correct username and password, and all relevant settings are correct. However, the test failed. I wonder if it is caused by the program supporting a lower TLS protocol. With the same configuration, I can send emails on behalf of others in other programs. I wonder if you could help investigate this issue. Thank you.

Andrew SoftPerfect
31 Aug

It wasn't the TLS version. When QQ advertised XOAUTH2, Ping Monitor picked it even though you'd given it an ordinary SMTP password. It now uses XOAUTH2 only when it's selected explicitly, and otherwise sticks to the usual password methods.

The fix is in Ping Monitor 26.10, on the Ping Monitor page. Install it over your current copy and try the same email settings again.

For QQ, use your full email address as the username and your QQ SMTP authorisation code as the password, not the regular account password. We tested it with both of QQ's setups: port 465 with TLS encryption and port 587 with STARTTLS.

Reply
Shown with your post. Sign in to keep the same name every time.
(optional, never shown)
Only needed if you want notifications about replies.
Drag files here, paste a screenshot, or . Images up to 10 MB. Text, log and zip files up to 2 MB. Up to 5 files per post.
You can edit your post until someone replies.