Commit Graph

6 Commits

Author SHA1 Message Date
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 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
Jeroen De Meerleer 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
Jeroen De Meerleer 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
Jeroen De Meerleer 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