OneUptime / oneuptime

OneUptime is the complete open-source observability platform.
https://oneuptime.com
Apache License 2.0
4.73k stars 209 forks source link

Docker Probe Container: Ping Monitoring is disabled #1586

Closed meifi closed 1 month ago

meifi commented 1 month ago

Hi,

we've installed oneuptime on Ubuntu 24.04 LTS with docker. But we cant use monitor type ping. on the admindashboard it says offline. dockerlogs for default probe and a manually added probe shows in log the following:

docker container logs oneuptime-probe

> @oneuptime/probe@1.0.0 start
> node --require ts-node/register Index.ts

App Version: 7.0.2774
(node:19) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Ping monitoring is disabled on this machine. Fallback to port monitoring
Ping monitoring is disabled
simlarsen commented 1 month ago

It should say online on admin dashboard. ICMP checks are usually disabled on cloud providers, so ping checks wont work there if you're installing a porbe on the cloud provider.

simlarsen commented 1 month ago

Please feel free to re-open this issue if you have any questions.

meifi commented 1 month ago

thank you for your response. It is there any option to enable ICMP checks on Cloud Providers ?

simlarsen commented 1 month ago

Unfortunately no way to enable that. They do it to prevent ICMP attacks.

meifi commented 1 month ago

But when i use the software in our own system environment it is a necessary check to make this usable. we've installed probes via docker on our own root servers at public hosters and on our own datacenter. on booth we've the problem, that pingmonitoring ist disabled.

how can the software find out that its a software on a public cloud provider?

simlarsen commented 1 month ago

We dont find the software is on cloud provider. When you run the probe, we try to ping major websites (google.com) for example and if that doesnt work, we disbale ping.

meifi commented 1 month ago

But when we run this software at our own datacenter, ping is also disabled. when we try so ping or access the websites from the dockerhost, which are listed in the sourcecode for the probe, so we've no problem.

We've also startet a container and check directly. we can reach all domains.

root@host:~# docker run --network oneuptime_oneuptime -ti mmoy/ubuntu-netutils bash
root@:/# ping google.com
PING google.com (216.58.223.238) 56(84) bytes of data.
64 bytes from los02s04-in-f14.1e100.net (216.58.223.238): icmp_seq=1 ttl=115 time=119 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 1 received, 50% packet loss, time 1001ms
rtt min/avg/max/mdev = 119.006/119.006/119.006/0.000 ms
root@:/# ping facbook.com
PING facbook.com (157.240.221.18) 56(84) bytes of data.
64 bytes from edge-star-shv-01-lhr8.facebook.com (157.240.221.18): icmp_seq=1 ttl=52 time=18.3 ms
^C
--- facbook.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 18.326/18.326/18.326/0.000 ms
root@:/#
meifi commented 1 month ago

We installed another status page yesterday for testing purposes. ping / icmp probes are possible here without any problems. Is it possible that this is an error in the check when starting the probe container?

simlarsen commented 1 month ago

Hmm.. Let me re-open this issue and look into it.

simlarsen commented 1 month ago

We found the issue. This is fixed and will be released by EOD today.

meifi commented 1 month ago

Perfect, many thanks. its working now :)