gatus icon indicating copy to clipboard operation
gatus copied to clipboard

Add simple ping for HTTP and HTTPS

Open vanhoutenbos opened this issue 2 years ago • 0 comments

Describe the feature request

Hi!

I would like to be able to do a simple PING to a webaddress to see if it resolves. We have some edgecases that apparantly do not allow to use buildHTTPRequest since they are returning a 403. For these cases I would like to be able to just ping since that seems to work when testing.

Is this something you would like to have, if so, I would be able to create a PR for this, or is there a working method at this moment?

I believe this could be added here; https://github.com/TwiN/gatus/blob/bde30b2efb82982e6b77592cc0c690760906e8d1/core/endpoint.go#L349 By adding something in the config, but I am not sure what, for example it could just be that one should replace http:// with ping:// or something.

Why do you personally want this feature to be implemented?

We have a website that doesn't resolve (403 forbidden) with buildHTTPRequest but does return a success when pinging

How long have you been using this project?

1year

Additional information

No response

vanhoutenbos avatar Oct 12 '23 06:10 vanhoutenbos