[RFC] Add a logger to check web page content
Hi all !
At GRAP, we are running a service OnlyOffice selfhosted. When the service is broken, for some reasons, a web page is displayed (200 status code) with a warning message. So I'd like to have a check to verify that the body page is containing "Document Server is running" or not.
I'm thinking to add a new logger for that purpose with an argument ok_messages = ["message 1", "message 2"].
- If all of the messages are present,
INFOCode - if status code != 200,
CRITICALCode - otherwise,
ERRORCode
Do you have similar needs ? Any idea of implementation ?
CC : @quentinDupont, @liZe, @arthru
regards !