Closed SpookOz closed 1 year ago
I've added two more scripts. One to check a number of specified services, and another to check a number of specified processes.
Sorry - added a couple more scripts!
You've got 2 files in the root, they should be in the wip folder :)
Persistence is an attribute of the successful!
Thank you for the PR!
This is a cool script! I just made a few changes that I think may improve it:
Added a $WARNINGVALUE (which can be lower than the $ERRORVALUE. If the disk is only at warning stage, it will exit with error code 2 instead of 1. In TRMM, you can set code 2 to be a warning (in automation) so you have time to fix the issue before it gets critical.
Added the option to change the warning and error value with ENV VARs so you don't need to change the code if they don't suit you, or you can customise it for different servers.
Rather than incrementing, I just set $ERROROUTCODE and $WARNINGOUTCODE to 1. I figure as long as there is at least one disk, it doesn't matter how many - it will still give an error or warning.