Simple Rust script to periodically check the availability of an application or system.
Sentinel Notify is a simple Rust script that periodically checks the availability of an application or system by pinging a specified URL. If the application or system is detected as offline, you can implement logic to send notifications.
Usage • Customization • Contributing • License
-
Make sure you have Rust installed. You can download and install it from https://www.rust-lang.org/tools/install.
-
Clone this repository:
git clone https://github.com/m4nd0mb3/sentinel-notify.git
cd sentinel-notify
-
Replace the contents of
src/main.rs
with the code provided in the main.rs file. -
Run the script:
cargo run
The script will periodically check the specified URL and print messages indicating whether the application or system is online or offline. You can modify the code to add your desired notification logic.
Feel free to customize the target_url
and sleep_duration
variables to fit your requirements. You can also implement additional logic for sending notifications in case of an offline status.
Contributions are welcome! If you find any issues or want to improve the script, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.