KevinKrumbiegel / check_gitlab

Nagios plugin for doing a GitLab health check
GNU General Public License v3.0
6 stars 5 forks source link

It looks like the readiness endpoint now requires a parameter #1

Closed DerekK19 closed 3 years ago

DerekK19 commented 3 years ago

I ran the python module as is and got the output: Cache check: Status=unknown, Message= Database check: Status=unknown, Message= Gitaly check: Status=unknown, Message= Queues check: Status=unknown, Message= Redis check: Status=unknown, Message= Shared state check: Status=unknown, Message= 6 checks done.

I then altered the check_gitlab file to append a ?all=1 argument to the readiness request so that it reads:

request = urllib.request.urlopen(server + "-/readiness?all=1")

Now when I run the module I get: ./check_gitlab -s http://127.0.0.1:8080/ --check-all OK - All checks ok 6 checks done.

It looks like Gitlab now requires a ?all=1 query parameter or only the master_check status will be returned. Maybe the settings are different for checking the status of gitlab.com

I have the latest Gitlab EE install (13.4.4-ee.0)

KevinKrumbiegel commented 3 years ago

Thank you very much for that hint! I just adapted the request as proposed by you.