[jira] [Commented] (AMBARI-20291) Script-Based Alert Dispatchers support passing more parameters to script

2017-07-05 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/AMBARI-20291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16075683#comment-16075683
 ] 

Hudson commented on AMBARI-20291:
-

FAILURE: Integrated in Jenkins build Ambari-branch-2.5 #1657 (See 
[https://builds.apache.org/job/Ambari-branch-2.5/1657/])
AMBARI-20291 - Script-Based Alert Dispatchers support passing more (smohanty: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git=commit=cba018eb6d5c4f2946998d083e92448f5e3770ad])
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AlertScriptDispatcher.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/state/services/AlertNoticeDispatchService.java
* (edit) 
ambari-server/src/test/java/org/apache/ambari/server/notifications/dispatchers/AlertScriptDispatcherTest.java


> Script-Based Alert Dispatchers support passing more parameters to script
> 
>
> Key: AMBARI-20291
> URL: https://issues.apache.org/jira/browse/AMBARI-20291
> Project: Ambari
>  Issue Type: Improvement
>Affects Versions: trunk
>Reporter: Yao Lei
>Assignee: Yao Lei
>Priority: Minor
> Fix For: trunk, 2.5.2
>
> Attachments: AMBARI-20291_2.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (AMBARI-20291) Script-Based Alert Dispatchers support passing more parameters to script

2017-07-05 Thread Sumit Mohanty (JIRA)

[ 
https://issues.apache.org/jira/browse/AMBARI-20291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16075639#comment-16075639
 ] 

Sumit Mohanty commented on AMBARI-20291:


Back ported to 2.5
{code}
1 commit cba018eb6d5c4f2946998d083e92448f5e3770ad
  2 Author: Jonathan Hurley 
  3 Date:   Mon Mar 6 11:13:34 2017 -0500
  4
  5 AMBARI-20291 - Script-Based Alert Dispatchers support passing more 
parameters to script (Yao Lei via jonathanhurley)
{code}

> Script-Based Alert Dispatchers support passing more parameters to script
> 
>
> Key: AMBARI-20291
> URL: https://issues.apache.org/jira/browse/AMBARI-20291
> Project: Ambari
>  Issue Type: Improvement
>Affects Versions: trunk
>Reporter: Yao Lei
>Assignee: Yao Lei
>Priority: Minor
> Fix For: trunk, 2.5.2
>
> Attachments: AMBARI-20291_2.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (AMBARI-20291) Script-Based Alert Dispatchers support passing more parameters to script

2017-03-06 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/AMBARI-20291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15897723#comment-15897723
 ] 

Hudson commented on AMBARI-20291:
-

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #6955 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/6955/])
AMBARI-20291 - Script-Based Alert Dispatchers support passing more (jhurley: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git=commit=41906e593cca9ea5a9fa6d413d2ca1f5a5dcbd32])
* (edit) 
ambari-server/src/test/java/org/apache/ambari/server/notifications/dispatchers/AlertScriptDispatcherTest.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AlertScriptDispatcher.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/state/services/AlertNoticeDispatchService.java


> Script-Based Alert Dispatchers support passing more parameters to script
> 
>
> Key: AMBARI-20291
> URL: https://issues.apache.org/jira/browse/AMBARI-20291
> Project: Ambari
>  Issue Type: Improvement
>Affects Versions: trunk
>Reporter: Yao Lei
>Priority: Minor
> Fix For: trunk
>
> Attachments: AMBARI-20291_2.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)