Nagios plugin for doing a GitLab health check. Copyright (c) 2020 Kevin Krumbiegel
wget -P ~/ https://github.com/KevinKrumbiegel/check_gitlab/blob/master/check_gitlab
)sudo chmod +x ~/check_gitlab
)mv ~/check_gitlab /usr/lib/nagios/plugins/check_gitlab
)wget -P ~/ https://github.com/KevinKrumbiegel/check_gitlab/blob/master/check_gitlab
)Usage:
check_gitlab -s <server_url> [-h] [--cache-check] [--db-check] [--gitaly-check] [--queues-check] [--redis-check] [--shared-state-check]
-s <server_url>
= URL of the server to be checked. (i.e. https://gitlab.example.org/)-h
= This help screen--check-all
= Enable all checks--check-cache
= Enable checking cache status--check-db
= Enable checking database status--check-gitaly
= Enable checking gitaly status--check-queues
= Enable checking queues status--check-redis
= Enable checking redis status--check-shared-state
= Enable checking shared state statusThe check_gitlab script queries the JSON-API endpoint of a GitLab server using the "Readiness" feature. By now it checks whether the status of all specified modules is "ok". In case the status is not okay, a cricital condition will be reported. If an exception occurs or the check is executed with bad parameter configuration, an unknown condition will be reported.
For further information see: