8000 GitHub - viniciusls/linkeeper-telegram: Useful bots for issuing alerts · GitHub
[go: up one dir, main page]

Skip to content

About

Useful bots for issuing alerts

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

7 Commits

Folders and files

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0