# Discourse health check function

**URL:** <https://meta.discourse.org/t/discourse-health-check-function/64474>\
**Category:** Feature\
**Created:** [14 يونيو 2017، 7:24ص UTC](https://meta.discourse.org/t/discourse-health-check-function/64474 "2017-06-14T07:24:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)\
**Post date:** [14 يونيو 2017، 7:24ص UTC](https://meta.discourse.org/t/discourse-health-check-function/64474/1 "2017-06-14T07:24:04Z")

</div>

Further to [this](https://meta.discourse.org/t/space-issues-recent/63948/7) it might be worth considering a built in health check which runs at some configurable interval.

It would be enough if it posted a message to admins indicating:

> Your instance is at release X  
> The source is at release Y

> Your disk space usage is X%  
> It has grown by Y% over the last month  
> at this rate your disk will be full in Z days.

> The swap file has been used X times in the last month  
> Your RAM usage is at 100% Y% of the time.

> OS Info: Blah Blah  
> Docker info: Blah Blah

> Your instance sent X mails in the last month, and received Y, Z bounced or were rejected. (I’m not sure about this as a health check parameter)

> The logs for the last month are here: URL

It wouldn’t _have_ to include the generation of a bug report for upload, but that might be worth considering… If an admin had a text file which included all the info that support here on meta generally needs to know, with sensitive data already redacted, the handling of basic problems would become easier and faster.

---

_[View the full topic](https://meta.discourse.org/t/discourse-health-check-function/64474)._
