You may have another process that periodically checks the status of the site. Set a rule that does not suit you, for example, you can say: "ping time> 1500 ms = down." Ask this process to leave a note in the database table or configuration file. Then you check this value on each rendering page with virtually no cost.
, , .
- , localhost, ASP.NET, .