Checkmk realpath: command not found Centos6

CMK version:

 check_mk_agent | head
<<<check_mk>>>
Version: 2.1.0p14
AgentOS: linux
Hostname: kenmore-1pnt.kenmore-envelope.local
AgentDirectory: /etc/check_mk
DataDirectory: /var/lib/check_mk_agent
SpoolDirectory: /var/lib/check_mk_agent/spool
PluginsDirectory: /usr/lib/check_mk_agent/plugins
LocalDirectory: /usr/lib/check_mk_agent/local
FailedPythonReason: 

OS version:
Centos6

Error message:

rpm -ivh --force check-mk-agent-2.1.0p14-1.noarch.rpm
Preparing...                ########################################### [100%]
/var/lib/cmk-agent/scripts/super-server/setup: line 8: realpath: command not found
/var/lib/cmk-agent/scripts/super-server/1_xinetd/setup: line 6: realpath: command not found
/var/lib/cmk-agent/scripts/super-server/0_systemd/setup: line 6: realpath: command not found

   1:check-mk-agent         ########################################### [100%]
/var/lib/cmk-agent/scripts/super-server/setup: line 8: realpath: command not found
/var/lib/cmk-agent/scripts/super-server/1_xinetd/setup: line 6: realpath: command not found
/var/lib/cmk-agent/scripts/super-server/0_systemd/setup: line 6: realpath: command not found

/var/lib/cmk-agent/scripts/super-server/setup: line 8: realpath: command not found
/var/lib/cmk-agent/scripts/super-server/0_systemd/setup: line 6: realpath: command not found
systemd not found on this system
/var/lib/cmk-agent/scripts/super-server/1_xinetd/setup: line 6: realpath: command not found
Deployed xinetd
Creating/updating cmk-agent user account ...
/var/lib/cmk-agent/scripts/super-server/setup: line 8: realpath: command not found
/var/lib/cmk-agent/scripts/super-server/1_xinetd/setup: line 6: realpath: command not found
/var/lib/cmk-agent/scripts/super-server/0_systemd/setup: line 6: realpath: command not found
/var/lib/cmk-agent/scripts/super-server/0_systemd/setup: line 6: realpath: command not found
systemd not found on this system
/var/lib/cmk-agent/scripts/super-server/1_xinetd/setup: line 6: realpath: command not found
/var/lib/cmk-agent/scripts/super-server/1_xinetd/setup: line 6: realpath: command not found
Reloading xinetd
Reloading configuration: [  OK  ]
/var/lib/cmk-agent/scripts/super-server/0_systemd/setup: line 6: realpath: command not found
**Output of “cmk --debug -vvn hostname”:** (If it is a problem with checks or plugins)

Well, I’ve seen similar issues before. CentOS 6 is way too old; it’s EOL for 2 years already. I suggest you either upgrade your OS and if that’s not possible use an older version of the agent that is supported on CentOS 6.

Where do I find the older agents? Yea I know its EOL and working with my current client to quickly get this updated but its high visible production box.

On the CheckMK download page. You can download the server RPM for 1.6.0p30 there. It includes the client.

You can then extract the contents of the RPM archive and get the CentOS 6 client rpm from there. To extract an RPM package without installing it you can use rpm2cpio and cpio to extract the contents.
https://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.