Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-20291

Script-Based Alert Dispatchers support passing more parameters to script

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: trunk, 2.5.2
    • Component/s: None
    • Labels:
      None

      Description

      Script-Based Alert Dispatcher now pass five parameters to script,including alert definition name, definition label,service name, alert state, and alert text.
      But if script can receive other two parameters from dispather,it will be better.
      1.hostname.
      Because hostname the alert for is not always included in alert text,although it may be null like aggregate alerts.
      With it we can more quick to find the related host that occured alert.
      2.alert timestamp.
      We may need to know the alert occurrence time ( state change time) more exactly. After the alert happened,it will spend some time to schedule the script to run.
      Without it,we can only regard the script start time as the alert occurrence time.

      We now use this feature to send alert information to mobile phone and suggest also passing hostname and alert timestamp.

        Attachments

        1. AMBARI-20291_2.patch
          5 kB
          Yao Lei

          Issue Links

            Activity

              People

              • Assignee:
                yaolei Yao Lei
                Reporter:
                yaolei Yao Lei
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: