Results 1 to 3 of 3

Thread: Handling error of notification

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    15

    Question Handling error of notification

    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.

  2. #2
    Junior Member
    Join Date
    Jun 2015
    Posts
    15
    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

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Posts
    15
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •