server monitoring: add validation
server monitoring: add validation: a task in smol-software-harbor (Harbor dataset). disk-alert.sh accepts any threshold ( abc , 0 , 150 , or nothing at all) and then alerts for everything or nothing. Make it check its argument first: unless it is an integer from 1 to 100, print a usage message to…
The task
`disk-alert.sh` accepts any threshold (`abc`, `0`, `150`, or nothing at all) and then alerts for everything or nothing. Make it check its argument first: unless it is an integer from 1 to 100, print a usage message to stderr, print nothing on stdout and exit with status 2 (without reading stdin). Run `bash…
Part of efederici/smol-software-harbor.