Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Proxtx/crontab_status
Monitor your contab jobs. Get notified on failures
https://github.com/Proxtx/crontab_status
Last synced: 13 days ago
JSON representation
Monitor your contab jobs. Get notified on failures
- Host: GitHub
- URL: https://github.com/Proxtx/crontab_status
- Owner: Proxtx
- License: mit
- Created: 2024-01-26T22:57:12.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-07-25T17:53:36.000Z (4 months ago)
- Last Synced: 2024-08-01T19:56:25.049Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 676 KB
- Stars: 71
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crontab_status
this allows you to check if your corontab jobs actually run and if they are successful. Clients have to report the result of the job to the server. If they failed to report in time or report a non-zero exit code an alarm is triggered.
# setup
1. install rust, cargo and trunk
2. On the server:- 1. cd into the "frontend" directory
- 2. run `trunk build --release`
- 3. cd into the "../server" directory
- 4. copy "config.toml.example" to "config.toml"
- 5. edit "config.toml". To create new jobs copy the first line below the job section and edit it's name (id) and optionally provide a webhook that is to be called, when the job failed. Note that the contab times currently don't support ranges. Crontab times are checked against utc
- 6. run `cargo run --release`3. On the client
- 1. cd into the client directory
- 2. run `cargo install --path .`
- 3. then edit your crontab config
- 4. prefix the jobs (after the crontab time) you added to your config.toml in the server section with `crontab_status_client --id your-job-id --password your-password --address http://server.address:port -- `4. Now you should be good to go. Visit the port the server opened and you should see the gui.
![Screenshot](screenshot.png)