Skip to content

allknowingman/xraymonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xraymonitor

این اسکریپت به طور مداوم وضعیت اتصال خروجی سرور را از طریق یک کانفیگ تست Xray بررسی کرده و در صورت بروز قطعی، دستورات سفارشی شما را برای بازیابی خودکار اجرا می‌کند.

بعنوان مثال میتونید در کنار تانل های ریورس مثل واتروال ، بکهال ، پنل به پنل، ... که هرازچندگاهی کانکشن مختل میشه استفاده کنید تا درصورت قطعی، دستور ریستارت تانل بصورت اتوماتیک اجرا بشه.

ویژگی های کلیدی

🟢 مانیتورینگ خودکار و دوره‌ای اتصال به اینترنت

🟢 اجرای دستور سفارشی کاربر در صورت بروز خطا مانند ری‌استارت یک سرویس خاص

🟢 قابلیت ریبوت خودکار سرور پس از تعداد مشخصی خطای متوالی

🟢 ارسال نوتیفیکیشن از طریق ربات تلگرام (برای سرورهای خارج از ایران)

🟢 منوی مدیریتی ساده و کاربرپسند تحت ترمینال (TUI) برای نصب، حذف و مدیریت

🟢 داشبورد نمایش وضعیت شامل سلامت سرویس، وضعیت آخرین اجرا و زمان باقی‌مانده تا اجرای بعدی

🟢 بررسی خودکار پیش‌نیازها قبل از نصب برای جلوگیری از بروز خطا

It continuously checks the server's outbound connection status using a test Xray config. If a disconnection occurs, it executes your custom commands to automatically recover the connection.

Key Features

  • Automatic, periodic monitoring of the internet connection.

  • Executes a user-defined custom command on failure (e.g., restarting a service).

  • Option to automatically reboot the server after a set number of consecutive failures.

  • Sends notifications via a Telegram bot (for non-Iran servers).

  • Simple, terminal-based user interface (TUI) for easy installation, uninstallation, and management.

  • Status dashboard showing service health, last run status, and time until the next check.

  • Automatically checks for dependencies before installation.

Quick Start

bash <(curl -Ls https://raw.githubusercontent.com/allknowingman/xraymonitor/main/xray-monitor.sh)

xraymonitor

About

An automatic monitoring script to detect and recover from Xray connection failures with custom command execution.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages