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

Socket: permission denied on ping #50

Closed
asiffer opened this issue Dec 3, 2024 · 0 comments · Fixed by #51
Closed

Socket: permission denied on ping #50

asiffer opened this issue Dec 3, 2024 · 0 comments · Fixed by #51
Labels
bug Something isn't working

Comments

@asiffer
Copy link
Member

asiffer commented Dec 3, 2024

In some cases, the ping module is likely to fail (even run as root):

Error(s) occurred while pinging 192.168.0.0/24:error while pinging 192.168.0.1: socket: permission denied

Group IDs which are allowed to create ICMP echo sockets may be restricted (net.ipv4.ping_group_range sysctl). Maybe we could check if the user running the agent is on a authorized group. Otherwise we can modify the sysctl during the run (with this library for instance).

See prometheus-community/pro-bing#83 for more details.

@asiffer asiffer added the bug Something isn't working label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant