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

Feature_request : http probe for size of returned page #426

Closed
xkilian opened this issue Mar 2, 2019 · 4 comments
Closed

Feature_request : http probe for size of returned page #426

xkilian opened this issue Mar 2, 2019 · 4 comments

Comments

@xkilian
Copy link

xkilian commented Mar 2, 2019

We have a use case where an http API responds with data. The size of the data varies and is correlated with a business process.
There are cases where the API responds but returns no data or unexepected amounts of data. A regex based check can be used for the first case, but having the size of the page or the size of the returned data/payload would be more informative.

Request: Have the http probe return the number of bytes in the http body or page.
Related: If implementing this, it would make sense to look at the #351 : md5 request as they are closely related. (If the decision is to implement)

@brian-brazil
Copy link
Contributor

brian-brazil commented Mar 2, 2019 via email

@xkilian
Copy link
Author

xkilian commented Mar 4, 2019

probe_content_length is always -1

One of my probes returns data as binary : xgoogle/protobuf
One of the probes returns data as plain HTML with some javascript

Other metrics are ok, http_version=1.1, status_code = 200, probe_success = 1, http_redirects = 0
The nagios check_http has no problem with either of these http requests and displays the content length correctly.

@BenoitKnecht
Copy link
Contributor

Is this a duplicate of #337 then?

@xkilian
Copy link
Author

xkilian commented Mar 6, 2019

Yup, just read through the original. This is a duplicate and can be closed in favor of tracking in #337 .

@xkilian xkilian closed this as completed Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants