Commit Graph

5 Commits

Author SHA1 Message Date
Jeroen De Meerleer 540ad83ef8
Improve check-webcron.sh output formatting
The code changes add a printf statement to format the output of the check-webcron.sh script. The new format rounds the value to three decimal places, improving readability.
2023-06-02 13:51:38 +02:00
Jeroen De Meerleer 050ba916ba
Refactor shell scripts: Remove unnecessary semicolons and add missing case terminators in the GetOptions function. 2023-06-01 16:24:24 +02:00
Jeroen De Meerleer d41ba60101
Refactor command line options for all scripts to include a help option. 2023-06-01 16:15:54 +02:00
Jeroen De Meerleer 253e922f99
Refactor check-webcron.sh to improve error messages
The commit refactors the check-webcron.sh script to improve error messages. Specifically, it changes "URL UNKNOWN" to "WEBCRON UNKNOWN" and adds that prefix to all related error messages.
2023-05-31 17:14:43 +02:00
Jeroen De Meerleer 09932a466c
Add check-webcron.sh script to monitor webcron jobs
This commit adds a new bash script that monitors webcron jobs. The script takes in options such as proxy server, warning and critical levels, and URL to be monitored. It then checks the status of the URL and returns an exit code based on whether it is OK, Warning or Critical.
2023-05-31 17:04:50 +02:00