A
A
Anton2017-10-29 16:24:41
Programming
Anton, 2017-10-29 16:24:41

How to perform full page monitoring?

Hello.
I recently ran into an interesting problem. It was necessary to monitor the site, i.e. see if the site is live or not. The task is trivial and in principle the solution is simple, see the status of the page if 200 then everything is ok. But then I was disappointed, because the person who set the task said that this was not a confirmation that the site was alive. You need to look at the elements, whether the styles have loaded, and so on.
This condition has me stumped. Who has any ideas how to monitor the site for additional. requirements. To manually look at the page, to be honest, I don’t want to at all. I want to run the program and get the result in a second.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Taratin, 2017-10-29
@MoonMaster

https://github.com/olamedia/nokogiri

A
Alexander, 2017-10-29
@NeiroNx

For this, the same script is used as that of "Yandex.Metrica". The script checks for browser-level loading and rendering errors and reports them to the monitoring server.

D
Dmitry Gadzhiev, 2017-10-29
@gds1

but to load the page of the site and see if it appeared in the variable, this is no longer a confirmation of the operation of the site?

Z
Zakharov Alexander, 2017-10-29
@AlexZaharow

And you have a counter question for the customer - and if the page is loaded live with errors or the downloaded scripts give errors, then what? Let him issue not a vague requirement, but a rigid one. "The site is alive" is not a technical requirement, but a human feeling. Code 200 is enough. As a performer, you can insist that this is enough. You have rights too.
The main problems in such "tasks" - few people think what to do when something goes wrong. And when they try to shift such crap to the developer, then such "customers" need to be reminded that they are just as responsible for the result as you are.

A
Alexander Pryadko, 2017-10-29
@alexander_v_pryadko

And what prevents you from believing the availability of all objects for loading (page + included files), if the server returns 200 (conditionally) for all objects, there is a chance that the client will load everything in a particular browser. You can also generate pdf (Athena PDF) everything will be visible there (this is for the customer), although I agree with Alexander Zakharov, it is necessary to specify the requirements, explaining to the customer that even a 100% check on a test bench may not give a 100% result for the client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question