Wazzup WEB
Universal server monitoring script + Telegram bot notification
Installation
1. Clone Repository
git clone https://github.com/xbaysal11/wazzup-web.git
cd wazzup-web/
chmod +x wazzup-web.sh
2. Get TOKEN and CHAT_ID
-
- Create bot with
@BotFather
and copy bot TOKEN
- Create bot with
-
- Open your bot and type
/start
- Open your bot and type
-
- Get chat id here:
https://api.telegram.org/bot<TOKEN>/getUpdates
- Get chat id here:
3. Configure script
Open wazzup-web.sh
file and configure
TOKEN=<bot_token>
CHAT_ID=<chat_id>
API=https://api.telegram.org/bot$TOKEN/sendMessage
SERVER=<web_url>
LOG_FILE=<path_to_log_file>
LOG_LINES=10
MESSAGE_HEAD='SERVER IS DOWN!'
AVAILABLE_STATUS_CODE='200|301'
4. Cron
1. Open terminal and write:
sudo crontab -u <USERNAME> -e
2. Add new cron tab in the cron file
* * * * * bash /path/to/script/wazzup-web.sh
NOTE: generate time here : crontab.guru
SPONSORS [Become a sponsor]
LICENSE
Wazzup WEB is MIT licensed.