Cmkadmin user locked, can't seem to unlock

CMK version: 2.4.0p4.cre
**OS version: Ubuntu 24.04.3 LTS x86_64 **

Error message: User locked

hello checkmk users,

i have been using checkmk for the past 2 months and just now cmkadmin user was locked (i believe to be failed login attempts), i have gone through at least 5 forum posts but nothing seems to work.

i have tried (+ restarted on every try):

  1. OMD[mysite]:~/etc/check_mk/multisite.d/wato, and nano users.mk | locked = false
  2. changed passwords
  3. with also htapassword
  4. tried searching for “lock_on_logon_failures” setting (not found)
  5. had a look on access_log (nothing interesting)
  6. asked chatgpt and gemini

I would like to know how to set myself free :slight_smile:
Thank you :slight_smile:

Hi Rafael,

not sure if maybe the ~/var/check_mk/web/cmkadmin/num_failed_logins.mk is also relevant, but maybe a quicker way is:

  1. use cmk-passwd to create a new user
  2. open the ~/etc/check_mk/multisite.d/wato/users.mk and change the new user’s role to “admin”
  3. unlock your cmkadmin using the web-ui with your new user.

Gerd

4 Likes

Hi gstolz,
i fixed, this morning.

I tried the num_failed_logins.mk but did not work, also found in cached_profile.mk on /omd/sites/monitoring/var/check_mk/web/cmkadmin, tried to set lock = False but not work.

have not tried your trick but i believe that should have worked :smiley:

**in the end i fixed this with just going to setup > user > cmkadmin and remove “disable the login to this account”

thank you for your help anyways and hope someone else finds good use of this post :)))

Rafael

1 Like