"cmk -N" not working in 2.5

CMK version: 2.5.0p3.ultimate
OS version: Debian 12

Error message:

OMD[dev25]:~$ cmk -N 
Traceback (most recent call last):
  File "/omd/sites/dev25/bin/cmk", line 128, in <module>
    exit_status = call(app, app.modes.get(mode_name), mode_args, opts, args, trace_context)
  File "/omd/sites/dev25/lib/python3/cmk/base/modes/call.py", line 55, in call
    return handler(*handler_args)  # type: ignore[no-any-return]
  File "/omd/sites/dev25/lib/python3/cmk/base/modes/check_mk.py", line 1533, in mode_dump_nagios_config
    licensing_handler=app.licensing_handler_type().make(),
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
TypeError: OnPremLicensingHandler.__init__() missing 1 required positional argument: 'state_handler'

I still have “18 days left in your free trial”.

Can you create a ticket? Will then be resolved quickly.

It is not that urgent. I just sometimes use the cmk -N output to debug service check parameters when developing my extensions.

Same here, host “dummy” exists.

OMD[icecube]:~$ cmk -N dummy
Traceback (most recent call last):
File “/omd/sites/icecube/bin/cmk”, line 128, in 
exit_status = call(app, app.modes.get(mode_name), mode_args, opts, args, trace_context)
File “/omd/sites/icecube/lib/python3/cmk/base/modes/call.py”, line 55, in call
return handler(*handler_args)  # type: ignore[no-any-return]
File “/omd/sites/icecube/lib/python3/cmk/base/modes/check_mk.py”, line 1533, in mode_dump_nagios_config
licensing_handler=app.licensing_handler_type().make(),
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
TypeError: OnPremLicensingHandler.init() missing 1 required positional argument: ‘state_handler’


OMD[icecube]:~$ omd version
OMD - Open Monitoring Distribution Version 2.5.0p3.ultimate
1 Like

I created an internal ticket to follow up on this.

2 Likes

hI @r.sander and others,

the team fixed this with https://checkmk.com/werk/19071, which was released with 2.5.0p6

Sunny Greetings

Hartmut

1 Like