KevinKrumbiegel / check_gitlab

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

check_gitlab

Nagios plugin for doing a GitLab health check. Copyright (c) 2020 Kevin Krumbiegel

Usage:

In Nagios:

  1. Download the check_gitlab file. (i.e. using wget -P ~/ https://github.com/KevinKrumbiegel/check_gitlab/blob/master/check_gitlab)
  2. Mark the file as executable (i.e. using sudo chmod +x ~/check_gitlab)
  3. Move the file to /usr/lib/nagios/plugins/ (i.e. using mv ~/check_gitlab /usr/lib/nagios/plugins/check_gitlab)
  4. Optionally use the gitlab.conf file as a CheckCommand definition in icinga2 (by default all checks will be executed)

Standalone:

  1. Download the check_gitlab file. (i.e. using wget -P ~/ https://github.com/KevinKrumbiegel/check_gitlab/blob/master/check_gitlab)
  2. Execute the file (Python needs to be installed)

Usage: check_gitlab -s <server_url> [-h] [--cache-check] [--db-check] [--gitaly-check] [--queues-check] [--redis-check] [--shared-state-check]

Background

The 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.

Further information

For further information see: