# Kibana Plugin Dependency Issue

**URL:** <https://discuss.elastic.co/t/kibana-plugin-dependency-issue/96566>\
**Category:** Kibana\
**Created:** [August 10, 2017, 8:23am UTC](https://discuss.elastic.co/t/kibana-plugin-dependency-issue/96566 "2017-08-10T08:23:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![varundbest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varundbest/32/48066_2.png) [@varundbest](https://discuss.elastic.co/u/varundbest)\
**Post date:** [August 10, 2017, 8:23am UTC](https://discuss.elastic.co/t/kibana-plugin-dependency-issue/96566/1 "2017-08-10T08:23:24Z")

</div>

So I've built a plugin for Kibana which have some external dependency (non-node) and upon booting process of Kibana I want to test if it is there by spawning a child process and installing it manually if it's not there.  
I want to block the completion of kibana boot process until my dependency is installed in an async fashion. How do you think i should go about this?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [August 10, 2017, 2:34pm UTC](https://discuss.elastic.co/t/kibana-plugin-dependency-issue/96566/2 "2017-08-10T14:34:27Z")

</div>

Generally what you'd do in the sort of situation is make the plugin status "red" until the dependency is available. Our elasticsearch plugin does something similar when it's waiting for Elasticsearch to become available. There's a "health check" that polls for ES and sets the plugin status to green if ES is available, red if it is not. Here's an example of how that is done [https://github.com/elastic/kibana/blob/3c0c0ff4412f665e917dea294636614764679902/src/core\_plugins/elasticsearch/lib/health\_check.js#L118-L119](https://github.com/elastic/kibana/blob/3c0c0ff4412f665e917dea294636614764679902/src/core_plugins/elasticsearch/lib/health_check.js#L118-L119)

---

<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:** [September 7, 2017, 2:34pm UTC](https://discuss.elastic.co/t/kibana-plugin-dependency-issue/96566/3 "2017-09-07T14:34:56Z")

</div>

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