Skip to main content

Ping Monitoring

The first step to monitor that your Windows Server (VPS) is working correctly is to ensure that it is powered on and reachable on internet.

To do that, we will use a Ping Monitoring, from an external website, like HetrixTools.

Unzip the ZIP archive to obtain the scripts (if not done already)

Extract archive - Image 1

  1. On your VPS, on the C:\ drive, create a folder named Tools if not already present
  2. In this folder, extract the metatrader_monitor.zip archive
  3. You should obtain a folder named metatrader_monitor.

Uncompressed folder - Image 1

  1. Make sure that the path of the folder is exactly C:\Tools\metatrader_monitor
  2. And that you have those files in it

Make sure your Windows Server is responding to Ping

Ping Monitoring - Image 1

  1. From your local computer, not from the VPS, open the Windows Startup Menu
  2. Type or search for Command Prompt
  3. Click on Command Prompt to launch the program

Ping Monitoring - Image 2

  1. In the new window, type the command ping, followed by the IP address of your VPS.
  2. If you see lines containing time=XXms, it means that the VPS is powered on and reachable with Ping
  3. If you see that the lines contains time<1ms, it probably means that you are trying to ping your VPS from the VPS itself, and therefore this is not a valid test. You need to try to ping the VPS from your computer.

Allow Ping (if not already allowed)

  1. If the Ping test is not working, we will have to allow Ping in the Windows Firewall.

Ping Monitoring - Image 3

  1. You can do that manually, by opening the Windows Defender Firewall and add a new ICMPv4 Rule, by clicking on New Rule and creating a Custom rule with the protocol ICMPv4

Ping Monitoring - Image 4

  1. Or you can go in the C:\Tools\metatrader_monitor\install folder and execute the script Install - Firewall - Allow PING from Everywhere.ps1, by doing right click, Run with PowerShell

Ping Monitoring - Image 5

  1. After starting the script, you should see a blue window telling you that the rule has been created in the Windows Firewall.

Ping Monitoring - Image 6

  1. You can verify that the Ping rule has been added to the Windows Firewall

Ping Monitoring - Image 7

  1. Repeat the ping test from the Command Prompt to confirm that your VPS is now responding to ping

Use HetrixTools to monitor the PING response of your VPS

Hetrix - Image

  1. From you web browser, open the website https://hetrixtools.com
  2. If you don't have an account already, click on FREE SIGNUP

Hetrix - Image

  1. Fill the form with your information, create your account, then login into your account

Hetrix - Image

  1. In the menu on the left, select "Contacts List"

Hetrix - Image

  1. In the list of the contacts, you can see that the Telegram notification is not enabled by default (grey color)
  2. Click on the edit icon to change the settings of this contact

Hetrix - Image

  1. In the Telegram section, click on Guide: Telegram Integration, you will be told that you need to send a message to the HetrixTools Telegram bot (https:/t.me/hetrixtools_bot)

Hetrix - Image

  1. In Telegram, search for this bot
  2. And send him a message

Hetrix - Image

  1. In response, you should obtain your ChatID. Copy this number.

Hetrix - Image

  1. Back on the HetrixTools website, paste your ChatId in the text area
  2. And click on Send test notification

Hetrix - Image

  1. You should receive a Telegram notification from the HetrixTools bot

Hetrix - Image

  1. Now, on the Contact List, the Telegram notification is now enabled (blue)

Hetrix - Image

  1. In the menu on the left, select Uptime Monitors

Hetrix - Image

  1. In the new window, click on Add Monitor

Hetrix - Image

  1. In the new window, select Ping/Service Monitor
  2. Then provice a nice name of the monitor
  3. And provide the Public IP address of your VPS
  4. Then you will have to select 4 different monitoring locations. Pick the cities that are the closest to your VPS
  5. And finally, click on Add Monitor

Hetrix - Image

  1. Back in the Monitor window, you should now see the New Monitor with the name of your VPS
  2. If you wait couple of seconds, you should see that HetrixTools was able to verify that your VPS was reachable by Ping
  3. If your VPS is turned off or is unreahable, HetrixTools will send you a notification.