-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
ICMP does not work on Mac OS #132
Comments
I assume that the - name: node-1
group: Uptime (Ping)
url: "icmp://127.0.0.1"
conditions:
- "[CONNECTED] == true"
- "[RESPONSE_TIME] < 150" |
When you say "on Mac OS", do you mean that you're running Gatus as an executable instead of going through Docker? |
Yes thats correct. I am not using Docker. |
I don't have a Mac I can test this on, but this is likely where the culprit is: Can you try running Gatus with elevated privileges, and see if the results are the same? |
Yes you are right. With elevated privileges it works. Ping should not need any elevated privileges. I think it might need a fix. But its also good to know and you can at least mention in repo documentation for other people who might be facing such issue. The rest its awesome tool and thank you for this. |
Also just rebuilt it with your instruction by setting pinger.SetPrivileged(false) and its working fine without sudo. Why did you put pinger.SetPrivileged(true) in the first place? Just curious to know. |
I believe it doesn't work on Windows (or was it Docker?) without Adding a conditional statement checking the value of GOOS should be able to resolve this issue. |
Ok good to know. Thank you for the fix. |
@xoraingroup Can you give it a try and let me know if the latest version works? |
Working perfectly fine. Thank you! |
Released in v2.8.0 |
MAC OS Big Sur version 11.0.1
Everything works perfectly ok except icmp in MAC OS.
Config:
url: "icmp://104.237.x.x"
group: Uptime (Ping)
conditions:
the x.x is in ip is set intentionally.
Is this wrong config?
The text was updated successfully, but these errors were encountered: