# X-pack Watcher Execution Status: Error!

**URL:** <https://discuss.elastic.co/t/x-pack-watcher-execution-status-error/122312>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [March 2, 2018, 7:33pm UTC](https://discuss.elastic.co/t/x-pack-watcher-execution-status-error/122312 "2018-03-02T19:33:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhilpawar1985](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@Nikhilpawar1985](https://discuss.elastic.co/u/Nikhilpawar1985)\
**Post date:** [March 2, 2018, 7:33pm UTC](https://discuss.elastic.co/t/x-pack-watcher-execution-status-error/122312/1 "2018-03-02T19:33:08Z")

</div>

Hi ,  
i am able to add watcher action but seeing execution error .  
Can someone help

```
 PUT _xpack/watcher/watch/my-watch
{
  "trigger": {
    "schedule": {
      "interval": "10s"
    }
  },
  "input": {
    "http": {
      "request": {
        "host": "10.62.8.15",
        "port": 9200,
        "path": "/_cluster/health"
      }
    }
  },
  "actions": {
    "logging": {
      "logging": {
        "text": "executed at {{ctx.execution_time}}"
      }
    },
    "notify-slack": {
      "slack": {
        "account": "monitoring",
        "message": {
          "from": "ELK Stack",
          "to": ["#elastic-test"],
          "text": "Watcher Alert Triggered!",
          "attachments": [
            {
              "title": "HSM_DISCONNECTED",
              "text": "Watch [{{ctx.metadata.name}}] threshold alert",
              "color": "danger"
            }
          ]
        }
      }
    }
  }
}

```

Execution output

Execution Status:  
Error!

```
{
  "watch_id": "my-test-watch",
  "node": "Qd-MDj8XTjuPpD0En1VMKw",
  "state": "failed",
  "status": {
    "state": {
      "active": true,
      "timestamp": "2018-03-02T19:16:33.337Z"
    },
    "actions": {
      "logging": {
        "ack": {
          "timestamp": "2018-03-02T19:16:33.337Z",
          "state": "awaits_successful_execution"
        }
      },
      "notify-slack": {
        "ack": {
          "timestamp": "2018-03-02T19:16:33.337Z",
          "state": "awaits_successful_execution"
        }
      }
    },
    "execution_state": "failed",
    "version": -1
  },
  "trigger_event": {
    "type": "schedule",
    "triggered_time": "2018-03-02T19:28:23.754Z",
    "schedule": {
      "scheduled_time": "2018-03-02T19:28:23.473Z"
    }
  },
  "input": {
    "http": {
      "request": {
        "scheme": "http",
        "host": "10.62.8.15",
        "port": 9200,
        "method": "get",
        "path": "/_cluster/health",
        "params": {},
        "headers": {}
      }
    }
  },
  "condition": {
    "always": {}
  },
  "result": {
    "execution_time": "2018-03-02T19:28:23.754Z",
    "execution_duration": 1,
    "input": {
      "type": "http",
      "status": "failure",
      "error": {
        "root_cause": [
          {
            "type": "no_http_response_exception",
            "reason": "10.62.8.15:9200 failed to respond"
          }
        ],
        "type": "no_http_response_exception",
        "reason": "10.62.8.15:9200 failed to respond"
      },
      "http": {
        "request": {
          "host": "10.62.8.15",
          "port": 9200,
          "scheme": "http",
          "method": "get",
          "path": "/_cluster/health"
        }
      }
    },
    "actions": []
  },
  "messages": [
    "failed to execute watch input"
  ]
}
```

---

<div class="post-metadata">

**Author:** ![Nikhilpawar1985](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@Nikhilpawar1985](https://discuss.elastic.co/u/Nikhilpawar1985)\
**Post date:** [March 5, 2018, 5:47pm UTC](https://discuss.elastic.co/t/x-pack-watcher-execution-status-error/122312/2 "2018-03-05T17:47:07Z")

</div>

Can someone guide on this ?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 9, 2018, 5:38am UTC](https://discuss.elastic.co/t/x-pack-watcher-execution-status-error/122312/3 "2018-03-09T05:38:57Z")

</div>

Any logs to support this? Which version r u using ?

cc / @spinscale

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![Tweek](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@Tweek](https://discuss.elastic.co/u/Tweek)\
**Post date:** [March 9, 2018, 10:04am UTC](https://discuss.elastic.co/t/x-pack-watcher-execution-status-error/122312/4 "2018-03-09T10:04:42Z")

</div>

You are telling your watch to gather input from the \_cluster/health API of one of the Elastic servers:

```
  "input": {
"http": {
  "request": {
    "host": "10.62.8.15",
    "port": 9200,
    "path": "/_cluster/health"
  }
}

```

but the URL is not available to the server executing the watch:

```
  "error": {
    "root_cause": [
      {
        "type": "no_http_response_exception",
        "reason": "10.62.8.15:9200 failed to respond"
      }

```

So this seems to be a networking issue unrelated to Elastic. Perhaps you can try to set host to localhost?

---

<div class="post-metadata">

**Author:** ![Nikhilpawar1985](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@Nikhilpawar1985](https://discuss.elastic.co/u/Nikhilpawar1985)\
**Post date:** [March 10, 2018, 5:20am UTC](https://discuss.elastic.co/t/x-pack-watcher-execution-status-error/122312/5 "2018-03-10T05:20:45Z")

</div>

apparently it was cert issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 7, 2018, 5:20am UTC](https://discuss.elastic.co/t/x-pack-watcher-execution-status-error/122312/6 "2018-04-07T05:20:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
