Solved Conditional check for ping response time

September 23, 2013 at 13:29:11
Specs: Windows 7
Hi guys,

I'm wondering if there is a way to create a script that will ping a server and open a webpage if the response time is over a specified amount (let's say 100ms). So, if the response time > 100ms, the script opens a webpage that will send a notification email that the connection to the server is slow.

Thank you.


See More: Conditional check for ping response time

Report •

#1
September 23, 2013 at 17:05:14
✔ Best Answer
@ping -n 1 -w 100 0.0.0.1 || start http://webpage_to_send_email

although I'm not real clear on why the email needs to be sent by a webpage, but that's in your jurisdiction.


Report •

#2
September 24, 2013 at 06:48:35
Thank you for the help nbrane. Would there be an easier way to send the email from the script itself?

Report •

#3
September 24, 2013 at 13:13:19
Google for "command line mailer" and you find a lot of free SMTP mailers to send e-mails from a batch script. I used Bmail.exe, a simple and effective tool to send an alert mail from remote unattended PCs to the control desk.

Report •

Related Solutions

#4
September 24, 2013 at 16:14:13
There are two or three posted here as well. Razor posted one, and I might put one have in How-Tos. I like Blat (maybe it's just the name, but it's easy to use, download is free).

message edited by nbrane


Report •

#5
September 25, 2013 at 00:51:38
Anyone have a link to bmail?

I can't get blat to work.

=====================
M2 Golden-Triangle


Report •

#6
September 26, 2013 at 18:47:54
Google found this, but I didn't download/test:
http://retired.beyondlogic.org/solu...

Report •

#7
September 26, 2013 at 22:39:31
nbrane, TY

I'll try it.

=====================
M2 Golden-Triangle


Report •

Ask Question