categraf/inputs/ping
Ulric Qin 4980450a97 refactor framework 2022-04-25 15:34:15 +08:00
..
README.md add ping README 2022-04-19 19:16:27 +08:00
ping.go refactor framework 2022-04-25 15:34:15 +08:00

README.md

File Limit

systemctl edit categraf

Increase the number of open files:

[Service]
LimitNOFILE=8192

Restart Categraf:

systemctl restart categraf

Linux Permissions

On most systems, ping requires CAP_NET_RAW capabilities or for Categraf to be run as root.

With systemd:

systemctl edit categraf
[Service]
CapabilityBoundingSet=CAP_NET_RAW
AmbientCapabilities=CAP_NET_RAW
systemctl restart categraf

Without systemd:

setcap cap_net_raw=eip /usr/bin/categraf

Reference man 7 capabilities for more information about setting capabilities.

Other OS Permissions

When using method = "native", you will need permissions similar to the executable ping program for your OS.