Skip to content

Latest commit

 

History

History
80 lines (59 loc) · 3.08 KB

README.md

File metadata and controls

80 lines (59 loc) · 3.08 KB

Sentinel Notify

GitHub release GitHub downloads GitHub license
Documentation Status GitHub issues GitHub followers github fork badge

Sentinel Notify

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.

UsageCustomizationContributingLicense

Usage

  1. Make sure you have Rust installed. You can download and install it from https://www.rust-lang.org/tools/install.

  2. Clone this repository:

git clone https://github.com/m4nd0mb3/sentinel-notify.git
cd sentinel-notify
  1. Replace the contents of src/main.rs with the code provided in the main.rs file.

  2. 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.

Customization

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.

Contributing

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.