-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello.
We are using this script from our monitoring stack. Normally, this kind of platforms expect an exit code to determine if the script has ended Ok (with exit status 0). It would be great if you could end the execution with and exit code in addition to the output text.
To show this, we have added the following code at the end of the script:
print result
if (result == "OK"):
exit(0)
elif (result == "ERR_NET_NODE"):
exit(1)
elif (result == "ERR_NET_STAT"):
exit(2)
elif (result == "ERR_SYNC"):
exit(3)Best regards.
Metadata
Metadata
Assignees
Labels
No labels