Mautic Community Forums

Healthcheck URL ?

What would be a valid healthcheck url for a Mautic installation ?

What would be a valid healthcheck url for a Mautic installation ?

I think /mtc.js works.

@guibod, depends on what you are trying to achieve with your health check? Are you wanting to know that the site is up? Are you wanting to confirm DB connectivity? Are you wanting to confirm last execution time of cronjobs?

@mingfang, how does http://mydomain.co.nz/mautic/index.php/mtc.js work? Is there a specific function you are thinking of in there?

Cheers
Jo

@JoPitts I run Mautic inside a Kubernetes cluster and use the Kubernetes http health check probe.
The probe simply looks for a 200 response code for any given url.
I this case I use /mtc.js as the health check url.

Ming - fair enough.

It might be a nice item to add to the roadmap at some point to have a health check page that brings back a 200, but also a range of statuses for things to do with server health.
Is the DB up, Diskspace, etc. Not sure if there is value in this or not?