I’m configuring our Icinga2 to send SMS notifications and automatically create tickets on certain bug trackers when necessary.
I’ve got my bash script that calls an API to send the SMS, and another script that calls the bug tracker’s API. I’ve configured the commands/templates and notifications accordingly, everything works perfectly.
Now, whenever there’s a problem during the API calls, my scripts retry a few times before quitting and exiting with a code different than 0.
My questions are :
- How does Icinga2 behaves when that happens ?
- Does it retry to send the notification ?
- Can it be configured to behave differently depending on the scripts’ exit codes ?