# Poll remote hosts for metrics from a central Metricbeat installation

**URL:** <https://discuss.elastic.co/t/poll-remote-hosts-for-metrics-from-a-central-metricbeat-installation/57546>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 9, 2016, 3:22am UTC](https://discuss.elastic.co/t/poll-remote-hosts-for-metrics-from-a-central-metricbeat-installation/57546 "2016-08-09T03:22:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulswaminathan](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rahulswaminathan](https://discuss.elastic.co/u/rahulswaminathan)\
**Post date:** [August 9, 2016, 3:22am UTC](https://discuss.elastic.co/t/poll-remote-hosts-for-metrics-from-a-central-metricbeat-installation/57546/1 "2016-08-09T03:22:33Z")

</div>

Hi,  
Does (or will) Metricbeat support polling remote hosts like routers,switches,etc. for metrics from a central server (where Metricbeat would be installed)? The reason for this is most routers and switches do not provide a way to install any software on them.

Regards,  
Rahul Swaminathan

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 9, 2016, 4:16am UTC](https://discuss.elastic.co/t/poll-remote-hosts-for-metrics-from-a-central-metricbeat-installation/57546/2 "2016-08-09T04:16:14Z")

</div>

It doesn't, but it sounds like a great module to create.

Alternatively, you can use [https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http\_poller.html](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http_poller.html)

---

<div class="post-metadata">

**Author:** ![rahulswaminathan](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rahulswaminathan](https://discuss.elastic.co/u/rahulswaminathan)\
**Post date:** [August 10, 2016, 12:16pm UTC](https://discuss.elastic.co/t/poll-remote-hosts-for-metrics-from-a-central-metricbeat-installation/57546/3 "2016-08-10T12:16:24Z")

</div>

Thanks @warkolm!

I'll open up a feature request on the github page. Below are the initial ideas that I think that the feature can have. Please feel free to add/modify/delete.

1. Input:
  - List of hosts to poll for metrics with options as:  
- Hostname, Connection method, Command/MIB/RPC, Cron timing, Additional tags to add before shipping to Elasticsearch/Logstash

2. Connection method:
  - SSH
  - SNMP
  - NETCONF (Future...)

3. Output:
  - Standard Metricbeat output that can be pushed to Elasticsearch directly or Logstash for parsing

Regards,  
Rahul Swaminathan

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [August 11, 2016, 6:57am UTC](https://discuss.elastic.co/t/poll-remote-hosts-for-metrics-from-a-central-metricbeat-installation/57546/4 "2016-08-11T06:57:58Z")

</div>

@rahulswaminathan Question from my side is why you would not want to do this with Logstash instead of Metricbeat? In general it is recommended to install Metricbeat on the edge node to only have to access localhost. In case you want to fetch your Metrics from a centralised server there are lots of plugins available for Logstash already.

Perhaps you can elaborate what would be advantage of using Metricbeat in your case over Logstash?

---

<div class="post-metadata">

**Author:** ![rahulswaminathan](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rahulswaminathan](https://discuss.elastic.co/u/rahulswaminathan)\
**Post date:** [August 17, 2016, 6:32am UTC](https://discuss.elastic.co/t/poll-remote-hosts-for-metrics-from-a-central-metricbeat-installation/57546/5 "2016-08-17T06:32:38Z")

</div>

Hey @ruflin,  
Like the http\_poller mentioned above, are there plugins to query remote hosts using SSH or SNMP? I checked the Logstash Input Plugins page but couldn't find any. If you do find it, please let me know. If it doesn't exist currently, I can then take this up with the Logstash folks and raise a feature request.  
My intention to do this using Metricbeat was to keep the ship, parse and store model consistent with the BELK stack. But, it doesn't matter which software we use as long as the data gets collected.

Thanks for your input!

Regards,  
Rahul Swaminathan

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [August 18, 2016, 5:44am UTC](https://discuss.elastic.co/t/poll-remote-hosts-for-metrics-from-a-central-metricbeat-installation/57546/6 "2016-08-18T05:44:23Z")

</div>

Just did some quick Googeling: [https://www.elastic.co/guide/en/logstash/current/plugins-inputs-snmptrap.html](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-snmptrap.html) I'm sure the LS guys can tell you better if there are some more plugins.

In case it doesn't exist, here is a dev guide on how to create a plugin: [https://www.elastic.co/guide/en/logstash/current/\_how\_to\_write\_a\_logstash\_input\_plugin.html](https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_input_plugin.html)

And here you can find the Dev guide for Metricbeat: [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-developer-guide.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-developer-guide.html)

Probably in the end it also depends on your preferred language to create such a tool, as it is possible with both.

---

<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:** [August 30, 2016, 3:22am UTC](https://discuss.elastic.co/t/poll-remote-hosts-for-metrics-from-a-central-metricbeat-installation/57546/7 "2016-08-30T03:22:54Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
