ocf / rt

Request Tracker service
https://rt.ocf.berkeley.edu
Other
11 stars 5 forks source link

Add a better healthcheck for RT #3

Closed kpengboy closed 7 years ago

kpengboy commented 7 years ago

Instead of only testing for a 401 status on the site root, which only tells you whether Apache is running, check to make sure we can log into RT and fetch ticket number 1.

kpengboy commented 7 years ago

I was intending to catch errors such as RT giving the 401 status but not actually being accessible because of a database misconfiguration etc. Do you think this more complex healthcheck is a step in the right direction?

@chriskuehl ^

chriskuehl commented 7 years ago

@kpengboy yeah, this seems like a good idea to me. There was an rt ticket about this at some point (how RT starts in a broken state if the database isn't reachable).

matthew-mcallister commented 7 years ago

@chriskuehl Ah, thanks for mentioning that; that clears things up. This fixes rt#3673, which is still open.