Hello everyone.
I use specific notification script for sending notification. How i can resend notification to different way if this sending method fail?
Thank you.
Hello everyone.
I use specific notification script for sending notification. How i can resend notification to different way if this sending method fail?
Thank you.
Maybe you can use exit code to know if the application that send the notification with success.
Exit code 0 => Ok
Exit code 1 => Fail
Exit code 2 => Wrong argument, wrong permission or somthing
So if exit code is not == 0 use the other action.
Here is an exemple in bash:
Code:Command to send the notification if [ $? -ne 0 ]; then Here my command to resend the notification in a diffrent way fi
Yes, i can do it inside notification script or check exit code in notification command line. But i ask about ability check it from shinken.