Thursday, December 31, 2020

HOW TO - monitor a URL from CLI during a short outage

 q: The customer rebooted a webserver and wanted to know how to monitor their URL so they would know when the server was back up.  10 years ago they would have used paping by Google but it does not seem to work anymore.

a: Nping.  If you install Nmap, it includes the Nping utility. Open an elevated command prompt and run a command like this, replacing the URL and Port as needed.  NOTE: It will open 100 connections to over port 443 and display on the screen a SENT row and a RCVD row.  When you start seeing RCVD rows, the site should be back up.

nping --tcp -c 100 -p 443

No comments:

Post a Comment