A
A
Anton2020-09-03 19:21:42
Windows
Anton, 2020-09-03 19:21:42

How to track server availability and send unavailability notifications?

The VPS at the hoster periodically turns off, and does not start by itself (does not know how).
1C, respectively, which is installed on a VPS running Windows - is not available to users.
I would like to quickly receive a message about the unavailability of the server, before users start to panic.
There is a direct ip and there is another server on Centos, from which you can access the server on Windows.
Can you tell me how monitoring and notification are implemented in telegrams, for example.
I know how to set up a telegram bot and already have it on the centos server for notifications of a different nature.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
Sanes, 2020-09-03
@Sanes

The easiest way is to use a third-party monitoring service. They can check both the usual ping and the operation of services. Notifications can be via SMS or messenger.
For example https://ping-admin.ru/

L
linux0id17, 2020-09-03
@linux0id17

I want to recommend a similar service (which I use), like Sanes, https://monitorus.ru/

D
Denis Melnikov, 2020-09-03
@Mi11er

  1. The hoster may have a monitoring service
  2. SNMP
  3. The simplest Python script with ping and SMS/Email/Push notification

S
Sasha Odarchuk, 2020-09-03
@Fanta

uptimerobot.com

E
Eugene, 2020-01-03
@zeond

1. Deploy Zabbix somewhere and use its agent. Also in new versions of Zabbix there is support for Telegram. Register a bot, feed its token to Zabbix, etc. Everything is in the official documentation.
2. Use a cron monitoring service, although they are more suitable for monitoring scheduled tasks (cron, Windows Task Scheduler, etc.). But they will suit your task too.
Create a cron task on the server that pulls a unique service URL. If your VDS is unavailable, you will receive a notification by mail or telegram.
Examples of such services: https://cronbox.ru , https://healthchecks.io etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question