leeej84 / -DEPRECATED---PowerScale

Replacement for Citrix SmartScale
GNU General Public License v3.0
16 stars 11 forks source link

exit with another exit code than 0 in case of an error #24

Closed gahujipo closed 3 years ago

gahujipo commented 3 years ago

these minor change makes the script exiting with another exit code than 0 in case of an error by using the error level of the WriteLog-function. Until now the script always had 0 as an exit code. The new introduced exit codes correspond to the default exit codes of Nagios/Icinga.

This would help us to monitor the script externally.

leeej84 commented 3 years ago

Thanks for the change, Great stuff