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.
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.