Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on system binary from ping input plugin #6050

Merged
merged 17 commits into from
Jul 11, 2019
Prev Previous commit
Next Next commit
Fix typos in readme
  • Loading branch information
glinton committed Jul 2, 2019
commit 05b0e4a679035f993ed54f3c31da9a67be8f0d8b
4 changes: 2 additions & 2 deletions plugins/inputs/ping/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ LimitNOFILE=4096
It is preferred that this plugin listen on privileged ICMP sockets. To do so, telegraf can either be run as the root user or the root user can add the capability to access raw sockets to telegraf by running the following commant:

```
setcap cap_net_raw=eip /home/test/telegraf
setcap cap_net_raw=eip /path/to/telegraf
```

Another option (doesn't work as well or in all circumstances) is to listen on unprivileged raw sockets (non-Windows only). The system group of the user running telegraf must be allowed to create ICMP Echo sockets. [See man pages icmp(7) for `ping_group_range`](http://man7.org/linux/man-pages/man7/icmp.7.html). On Linux hosts, run the following to give a group the proper permissions:

```
sudo sysctl -w net.ipv4.ping_group_range="GROUPID GROUPID"
sudo sysctl -w net.ipv4.ping_group_range="GROUP_ID_LOW GROUP_ID_HIGH"
```


Expand Down