[
https://issues.apache.org/jira/browse/AMBARI-21122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16039025#comment-16039025
]
Hudson commented on AMBARI-21122:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7580 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/7580/])
AMBARI-21122 - Part One: Specify the script directly in alert target (jhurley:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4247f6919c329fc3da9e4ea8a0aa62aacd4793e3])
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/notifications/dispatchers/AlertScriptDispatcherTest.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AlertScriptDispatcher.java
> Part One: Specify the script directly in alert target for script-based alert
> dispatchers
> -----------------------------------------------------------------------------------------
>
> Key: AMBARI-21122
> URL: https://issues.apache.org/jira/browse/AMBARI-21122
> Project: Ambari
> Issue Type: Technical task
> Affects Versions: trunk
> Reporter: Yao Lei
> Assignee: Yao Lei
> Fix For: 3.0.0
>
> Attachments: AMBARI-21122.1.patch, AMBARI-21122.2.patch,
> AMBARI-21122.3.patch
>
>
> *Jave Codes Part*
> This patch will support using property
> *ambari.dispatch-property.script.filename* in alert target to tell
> AlertScriptDispatcher to lookup script by filename,default in
> /var/lib/ambari-server/resources/scripts directory. We can also change this
> directory in ambari.properties by
> *notification.dispatch.alert.script.directory* property.
> Execute a command manually like following to create an alert target that
> includes this property:
> {code}
> POST api/v1/alert_targets
> {
> "AlertTarget": {
> "name": "syslogger",
> "description": "Syslog Target",
> "notification_type": "ALERT_SCRIPT",
> "global": false,
> "groups":[1,3]
> "alert_states":["WARNING","CRITICAL","UNKNOWN"],
> "properties": {
> "ambari.dispatch-property.script.filename": "foo.py"
> }
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)