Mkp doesn't work, nothing added, no output

CMK version: 2.2.0p20 (latest raw)
OS version: Fedora 38

Error message: is much the same for several other addons I tried

OMD[house]:~$ mkp inspect /tmp/lmsensors2-1.0.mkp 

OMD[house]:~$ mkp show-all
Local extension packages
========================

Shipped extension packages
==========================

OMD[house]:~$ mkp add /tmp/lmsensors2-1.0.mkp

OMD[house]:~$ mkp list
Name Version Title Author Req. Version Until Version Files State
---- ------- ----- ------ ------------ ------------- ----- -----
OMD[house]:~$ 

Output of ā€œcmk --debug -vvn hostnameā€: (If it is a problem with checks or plugins)

[root@bookcase house]# su - house
Last login: Wed Jan 24 22:07:21 GMT 2024 on pts/0
egrep: warning: egrep is obsolescent; using grep -E
OMD[house]:~$ cmk --debug -vvn hostname
Checkmk version 2.2.0p20
Failed to lookup IPv4 address of hostname via DNS: [Errno -3] Temporary failure in name resolution

OMD[house]:~$ cmk --debug -vvn localhost
Checkmk version 2.2.0p20
Updating IPv4 DNS cache for localhost: 127.0.0.1
Trying to acquire lock on /omd/sites/house/var/check_mk/ipaddresses.cache
Got lock on /omd/sites/house/var/check_mk/ipaddresses.cache
Releasing lock on /omd/sites/house/var/check_mk/ipaddresses.cache
Released lock on /omd/sites/house/var/check_mk/ipaddresses.cache
+ FETCHING DATA
  Source: SourceInfo(hostname='localhost', ipaddress='127.0.0.1', ident='piggyback', fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7fcca0f86c50]
Read from cache: NoCache(localhost, path_template=/dev/null, max_age=MaxAge(checking=0.0, discovery=0.0, inventory=0.0), simulation=False, use_only_cache=False, file_cache_mode=1)
[PiggybackFetcher] Execute data source
No piggyback files for 'localhost'. Skip processing.
No piggyback files for '127.0.0.1'. Skip processing.
[cpu_tracking] Stop [7fcca0f86c50 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
  HostKey(hostname='localhost', source_type=<SourceType.HOST: 1>)  -> Add sections: []
Received no piggyback data
[cpu_tracking] Start [7fcca04acb10]
value store: synchronizing
Trying to acquire lock on /omd/sites/house/tmp/check_mk/counters/localhost
Got lock on /omd/sites/house/tmp/check_mk/counters/localhost
value store: loading from disk
Releasing lock on /omd/sites/house/tmp/check_mk/counters/localhost
Released lock on /omd/sites/house/tmp/check_mk/counters/localhost
No piggyback files for 'localhost'. Skip processing.
No piggyback files for '127.0.0.1'. Skip processing.
[cpu_tracking] Stop [7fcca04acb10 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
[piggyback] Success (but no data found for this host), execution time 0.0 sec | execution_time=0.000 user_time=0.000 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=0.000
OMD[house]:~$ 

Hi,

it looks like you followed all the steps from this article: Checkmk extension packages (MKPs) - Integrating extensions from the community into Checkmk

And I am guessing you are referring to this MKP: Checkmk Exchange

This was developed for version 2.0. It could be that there are some incompatibilities. There were quite a few changes introduced to the MKP handling with 2.2. See the slides from this talk (p 25ff): https://conference.checkmk.com/application/files/9416/8864/9109/Conf9_New_in_2.2_Check_Engine_and_More.pdf

Hereā€™s the corresponding video: https://youtu.be/btKutBnsTqg?si=FHPf7i7ejMmRDBgM&t=1270

But thatā€™s just speculation.

Same thing occurs with check_mk_extensions/apcaccess at cmk2.2 Ā· HeinleinSupport/check_mk_extensions Ā· GitHub so donā€™t think so.

(sigh)

If you run mkp with ā€˜-dā€™ it spits out whats actually wrong, which was a permissions error with the file.

Shouldnā€™t this come out normally ?

After mkp add you have to mkp enable the package.

1 Like

Thanks, but I already read the manual. ā€˜listā€™ after ā€˜addā€™ should it installed but not enabled, but I though I was clear in OP that it lists nothing.

This is trivial to replicate - download a .mkp, chmod 000 it, and try to add it. No error is displayed, unless you add -d.

Where can I file bugs ?