Commit Graph

22 Commits

Author SHA1 Message Date
85026a5e7f
Fix incorrect command in check-systemctl-service.sh
The commit fixes a bug in the check-systemctl-service.sh script where the wrong command was being used to list units. The correct command, "systemctl ${user} list-units", is now used instead of "systemctl ${user} list-unit-files". This ensures that the script accurately checks for active services.
2024-02-12 13:03:18 +01:00
2502f8c817
Refactor temperature check and error handling
- Refactored code to improve readability and maintainability
- Added error handling for when Temper USB is not found
- Updated variable names for clarity
2023-08-02 16:13:58 +02:00
27313aec76
Add check-env-temp.sh script to monitor environment temperature
This commit adds a new bash script called check-env-temp.sh that monitors the internal temperature of the system and returns an exit code based on whether it is within acceptable limits. The script takes in command line arguments for setting warning and critical thresholds, and outputs a message indicating whether the temperature is OK, Warning or Critical along with performance data.
2023-06-19 22:31:01 +02:00
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
05220c207a
Improve output formatting for check-url.sh
This commit adds formatting improvements to the output of check-url.sh. Specifically, it formats the response time, DNS lookup time, and connect time to three decimal places. This makes the output more readable and easier to understand.
2023-06-02 13:45:54 +02:00
050ba916ba
Refactor shell scripts: Remove unnecessary semicolons and add missing case terminators in the GetOptions function. 2023-06-01 16:24:24 +02:00
d41ba60101
Refactor command line options for all scripts to include a help option. 2023-06-01 16:15:54 +02:00
e849092a4d
Add script name and directory variables to check-systemctl-service.sh
This commit adds two new variables, script_name and script_dir, to the check-systemctl-service.sh file. These variables are used to store the name of the script and its directory path respectively.
2023-06-01 16:09:07 +02:00
b01af8010d
Refactor check-dummy.sh to add options for warning, critical and unknown status
This commit refactors the check-dummy.sh script to include options for warning, critical and unknown status. The script now accepts the following command line arguments: --ok (default), --warning, --critical and --unknown. The exit codes have also been updated to reflect these new statuses.
2023-06-01 16:08:49 +02:00
a1cd78b7e5
Fix typo in check-disk.sh options
The script had a typo in the critical option flag. Changed "critital" to "critical".
2023-06-01 14:35:01 +02:00
b2fccadfa1
Add check-md.sh script to monitor RAID device status
This commit adds a new bash script called check-md.sh that can be used to monitor the status of a RAID device. The script takes in options for warning and critical events, and checks the status of the specified MD-device. It then returns an exit code based on whether any warning or critical events were triggered, along with a message describing the current state of the array.
2023-06-01 14:34:36 +02:00
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
9db3ebbce6
Improve check-url.sh script documentation
The script's usage message has been updated to reflect the correct functionality of the script. The previous message was incorrect and referred to disk usage instead of checking if a URL is available.
2023-05-31 17:05:53 +02:00
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
8d4a9f2991
Fix typo in check-url.sh script
The word "critical" was misspelled as "critital". This commit corrects the spelling error.
2023-05-31 14:33:04 +02:00
30369488f8
Add check-dummy.sh script
Added a new bash script that always returns OK. The script has usage instructions and exit codes. It also uses getopt to parse arguments.

Significant changes:
- Added check-dummy.sh
- Script always returns OK
- Usage instructions added
- Exit codes defined
- Getopt used for argument parsing
2023-05-31 14:28:07 +02:00
41082ce029
feat: Add script to check URL response time
This commit adds a new bash script that checks the response time of a given URL. The script takes in options for proxy server, warning and critical levels for response time, and the URL to be checked. It returns exit codes based on whether the response time is within acceptable limits or not.
2023-05-31 12:26:03 +02:00
17ce488ac3
Refactor shell scripts to remove unused code.
- Remove possibleaverages array from check-disk.sh and check-mem.sh
2023-05-31 11:40:47 +02:00
bdb9ee05e7
Add check-systemctl-service.sh script to check if a systemd unit is active.
This commit adds the check-systemctl-service.sh script which can be used to check if a systemd unit is active. The script takes in a unit file as an argument and has an optional flag to check for running within the current user. It returns exit codes based on whether the service is active, inactive or unknown.
2023-05-26 14:33:11 +02:00
ecc00c776c
Refactor shell scripts to check disk, load and memory usage
The commit refactors the shell scripts for checking disk, load and memory usage. The changes include updating the usage instructions and options for each script. The new options allow users to set warning and critical levels for each check.
2023-05-26 12:34:42 +02:00
84d97e3ca0
feat: Add disk, load and memory check scripts
Added three new scripts to check the status of disk usage, system load and memory usage. Each script takes in options for warning and critical levels, as well as an option to choose which average to use for the load level. The output includes information on used, available and total space/usage along with percentage values.
2023-05-26 12:32:12 +02:00
1dfaa2479b
Add GNU General Public License to the project
This commit adds the GNU General Public License to the project, which is a free, copyleft license for software and other kinds of works. The license guarantees users' freedom to share and change all versions of a program, ensuring it remains free software for all its users. The license also requires developers to protect users' rights by asserting copyright on the software and offering legal permission to copy, distribute, and/or modify it.
2023-05-26 12:30:11 +02:00