Skip to content

✋😂 WAZZUP WEB - Universal server monitoring script with Telegram bot notification

License

Notifications You must be signed in to change notification settings

xbaysal11/wazzup-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logo

Wazzup WEB

Universal server monitoring script + Telegram bot notification

https://t.me/xruin Privatium Github Privatium https://t.me/xruin


wazzup-web-gif


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

    1. Create bot with @BotFather and copy bot TOKEN
    1. Open your bot and type /start
    1. Get chat id here: https://api.telegram.org/bot<TOKEN>/getUpdates

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]

https://t.me/xruin


LICENSE

Wazzup WEB is MIT licensed.