From f8cc9719a237ab221594a7ac2c42c4cc18d1859a Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Wed, 20 Feb 2019 17:57:08 -0800 Subject: [PATCH] Document how to increase the file limit in the ping input --- plugins/inputs/ping/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/plugins/inputs/ping/README.md b/plugins/inputs/ping/README.md index 4f953c8e1..1083c0074 100644 --- a/plugins/inputs/ping/README.md +++ b/plugins/inputs/ping/README.md @@ -40,6 +40,27 @@ apt-get install iputils-ping # arguments = ["-c", "3"] ``` +#### File Limit + +Since this plugin runs the ping command, it may need to open several files per +host. With a large host list you may receive a `too many open files` error. + +To increase this limit on platforms using systemd it must be done in the +service file. + + +Find the service unit file: +``` +$ systemctl show telegraf.service -p FragmentPath +FragmentPath=/lib/systemd/system/telegraf.service +``` + +Set the file number limit: +``` +[Service] +LimitNOFILE=4096 +``` + ### Metrics: - ping