Change in the API latest version

Hi there,

been using this script check_gitlab.rb · master · Marco Peterseil / check_gitlab · GitLab last few years. So far so good, but with the latest update of Gitlab (CE) I have noticed that it cannot find the right API paths anymore.

How to solve and regain monitoring enabled again,
Thanks

Problem to solve

With the latest version of Gitlab the scripts shows Unknown - Not found,

root@behemoth.home.lan:~# /usr/lib/nagios/plugins/check_gitlab.rb -m health -s https://127.0.0.1 -k
Unknown - Not Found
root@behemoth.home.lan:~#

Probably some API paths are being removed from the configuration.

Steps to reproduce

Only seen in the latest version:

root@behemoth.home.lan:~# dpkg -l gitlab-ce
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-===========================================================
ii  gitlab-ce      18.5.0-ce.0  amd64        GitLab Community Edition (including NGINX, Postgres, Redis)
root@behemoth.home.lan:~#

Configuration

No config change..

Versions

Please select whether options apply, and add the version information.

  • Self-managed - yes
  • GitLab.com SaaS
  • Dedicated

Versions

root@behemoth.home.lan:~# gitlab-rake gitlab:env:info

System information
System:         Ubuntu 22.04
Current User:   git
Using RVM:      no
Ruby Version:   3.2.8
Gem Version:    3.7.1
Bundler Version:2.7.1
Rake Version:   13.0.6
Redis Version:  7.2.10
Sidekiq Version:7.3.9
Go Version:     unknown

GitLab information
Version:        18.5.0
Revision:       a2f69d15eba
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     PostgreSQL
DB Version:     16.10
URL:            https://gitlab.home.lan
HTTP Clone URL: https://gitlab.home.lan/some-group/some-project.git
SSH Clone URL:  git@gitlab.home.lan:some-group/some-project.git
Using LDAP:     yes
Using Omniauth: yes
Omniauth Providers:

GitLab Shell
Version:        14.45.3
Repository storages:
- default:      unix:/var/opt/gitlab/gitaly/gitaly.socket
GitLab Shell path:              /opt/gitlab/embedded/service/gitlab-shell

Gitaly
- default Address:      unix:/var/opt/gitlab/gitaly/gitaly.socket
- default Version:      18.5.0
- default Git Version:  2.50.1
root@behemoth.home.lan:~#

Thanks

The source shows a CLI parameter --debug which could be helpful to see more details.

Did some research with Duo Agentic Chat on the GitLab source code and docs to verify the readiness endpoint is there and works.

Maybe the required allowlists are not configured anymore?

Insights




Thanks will check it