Problem with cmk-update-agent on Centos 7

Hi

Trying to get automatic update of checkmk agent to work on Centos 7 but it always fails because the script tries do run “dpkg -i” instead of “rpm -i” on the downloaded package

We are running the latest stable version of checkmk enterprise 1.6.0p10, but the issue was on the earlier versions also

Is this a known bug that will be fixed in a later update or should we try to fix the script ourselves?

Is the update working, if you force it manually ?
cmk-update-agent --reinstall --force --verbose

1 Like

Hi,
no problem on Centos 7:

cmk-update-agent -v

Downloaded agent has size 9593259 bytes.
Signature check OK.
Invoking package manager: rpm -vU --oldpackage --replacepkgs /tmp/check-mk-agent-9bV9AI
Output from rpm:
Pakete vorbereiten...

Karl

No difference, its like the cmk-update-agent think its a ubuntu/debian server

cmk-update-agent --reinstall --force --verbose

Getting target agent configuration for host ‘’ from deployment server
Updated the certificate store “/var/lib/check_mk_agent/cas/all_certs.pem” with 1 certificate)
Target state (from deployment server):
Agent Available: True
Signatures: 1
Target Hash:
Updated the certificate store “/var/lib/check_mk_agent/cas/all_certs.pem” with 1 certificate)
Downloaded agent has size 9572894 bytes.
Skipping signature check (as you requested).
Invoking package manager: dpkg -i /tmp/check-mk-agent-IH6N7i
ERROR Failed installing Check_MK agent: [Errno 2] No such file or directory.
Hint: You can try to install or analyze the agent package manually by downloading it from th.
ERROR [Errno 2] No such file or directory
See syslog or Logfile at /var/lib/check_mk_agent/cmk-update-agent.log for details.

Hi,
what’s the name of the agent file? And the file-type?

Karl

Hi,

This is the filename
check-mk-agent-1.6.0p10-c48f211cec4db1a2.noarch.rpm
Everything works fine except the cmk-update-agent thats baked in to the package

Daniel

Hello,

If I understood the code correct the agent updater look at the following directories to determine the packet manager:

Debian:
/var/lib/dpkg/status

RPM:
/var/lib/rpm AND /bin/rpm OR /usr/bin/rpm

Solaris:

/var/sadm/pkg AND /usr/bin/pkg OR /usr/sbin/pkgadd

Fallback is TGZ!

I hope that helps.

BR

Michael

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.