Skip to content

viniciusls/linkeeper-telegram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linkeeper-telegram

Useful bots for issuing alerts

Usage - Updownbot

  1. Export LINKEEPER_TELEGRAM_BOT_IDand LINKEEPER_TELEGRAM_CHAT_ID to the environment variables. E.g.:
/etc/environment

export LINKEEPER_TELEGRAM_BOT_ID=<your_bot_token>
export LINKEEPER_TELEGRAM_CHAT_ID=<your_chat_id>
  1. Change $url on updownbot/updownbot.php to the website/system URL which it's desired to check if it's up or down.

  2. Add a php call to the script on crontab for continuous monitoring (optional). E.g.:

# crontab -e

# Call the script every 5 minutes
*/5 * * * * php /path.to/linkeeper-telegram/updownbot/updownbot.php

That's it! The bot will notify if the website/system is down as soon as the script is called and the result is returned.

About

Useful bots for issuing alerts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%