Server status monitoring with notifications in the Telegram channel
Created By: Illia Zabolotskyi
Year: 2022
Platform: Telegram
Language: PHP
Project Goal
Get to know about server errors and unavailability before users.
Description of functions
There are several API servers to which several different requests from many clients can come every second. The server code has imperfections, which causes periodic crashes and component crashes. An additional API method has been implemented on the server that checks the health of all major components. A script was implemented on a separate server, which is called every minute via cron, this script calls the API method to check the components, and if the response of the method reports errors in one of the components, then the script sends a request to the chat bot via the Telegram API, who posts a message to a Telegram channel previously created for this.