LightAlert
Lightweight scheduled task monitoring tool-monitors the running status of cron jobs and provides a Web interface to view task execution history, failure alarms and status statistics. Support multiple themes, automatically clean up old records, and perfectly adapt to server operation and maintenance and automated monitoring scenarios.
**LightAlert** is a lightweight timed task monitoring tool specifically designed to monitor the running status of cron jobs. Through the simple Web interface, you can view task execution history, receive failure alarms, and view status statistics in real time, perfectly adapting to server operation and maintenance and automated monitoring scenarios. ###Core features - ** Lightweight and efficient **: Developed based on Go language, extremely low resource consumption - ** Visual monitoring **: Intuitive Web interface displays task execution status - ** Alarm notification **: Supports alarm reminders when a task fails - ** Historical record **: Completely store the task execution history and support query and analysis - ** Multi-theme support **: Provide multiple Bootswatch themes - ˇ ** Automatic cleanup **: Automatically delete historical records before the specified number of days ##How to use ###Step 1: Add a monitoring host 1. ** Click the "Add Host" button ** - Find the "Add Host" or "Add Host" button at the top of the main screen 2. ** Fill in host information ** ``` Hostname: For example,"Production Server" Host description: for example,"primary business server" Monitoring key: A unique identifier automatically generated by the system (please save it properly) ``` 3. ** Save configuration ** - After clicking Save, the system will generate a unique monitoring Key - This Key will be used for subsequent task reporting ###Step 2: Configure server-side cron tasks On the server you need to monitor, edit crontab: ```bash #Edit crontab crontab -e ``` ####Use curl to report (recommended) Add an escalation command to the end of your cron task: ```bash #Example: Perform backup tasks at 2 a.m. every day 0 2 * * * /path/to/backup.sh &&& curl -X POST https://lightalert. Your domain name/api/ping/Your monitoring Key|| curl -X POST https://lightalert. Your domain name/api/ping/Your monitoring Key? status=fail ``` ** Order explanation **: - `&`: Execution after successful task - First curl: Report the task successfully - `||`: Execution after task failure - Second curl: Failed to report the task (with status=fail parameter)



