Skip to content

Commit f8cc971

Browse files
committed
Document how to increase the file limit in the ping input
1 parent 0a01713 commit f8cc971

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

plugins/inputs/ping/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,27 @@ apt-get install iputils-ping
4040
# arguments = ["-c", "3"]
4141
```
4242

43+
#### File Limit
44+
45+
Since this plugin runs the ping command, it may need to open several files per
46+
host. With a large host list you may receive a `too many open files` error.
47+
48+
To increase this limit on platforms using systemd it must be done in the
49+
service file.
50+
51+
52+
Find the service unit file:
53+
```
54+
$ systemctl show telegraf.service -p FragmentPath
55+
FragmentPath=/lib/systemd/system/telegraf.service
56+
```
57+
58+
Set the file number limit:
59+
```
60+
[Service]
61+
LimitNOFILE=4096
62+
```
63+
4364
### Metrics:
4465

4566
- ping

0 commit comments

Comments
 (0)