Ping plugin for Telegraf to ping multiple ips and export it to InfluxDB

First, proceed to generate your telegraf configuration file with ping plugin enabled:

telegraf -sample-config -input-filter ping -output-filter influxdb > telegraf_ping.conf

If you want to do the classic ping with 1 sec interval, edit the following options:

  interval = "1s"
  flush_interval = "1s"

  urls = ["",""]  #Add your ips list
  count = 1
  ping_interval = 1.0
  timeout = 0.0

Now, to run it, execute:

telegraf -config telegraf_ping.conf

Meanwhile, you can show it on Grafana:

Enjoy it!


Post a Comment

Popular posts from this blog

How to fix Android when developer options are not available for this user

from: can't read /var/mail/ in Python scripts

Fix "Set scan parameters failed: Input/output error" on Ubuntu 16.04