chrisss404 / check-mk-arm

Checkmk for Raspberry Pi.
182 stars 23 forks source link

Oracle cmk-agent-ctl #55

Closed lorivaro closed 1 year ago

lorivaro commented 1 year ago

Hi, I have followed thes steps described in #53 on my Oracle Cloud instance using 2.1.0p24 (2.1.0p25 wasn't built somehow), as I'd like to monitor this server from elsewhere. However, I can't seem to use the cmk-agent-ctl command to register this server. Is there a way I could using this build, or am I in the wrong place?

louk@oracle:~$ uname -a
Linux oracleLouk 5.15.0-1032-oracle #38-Ubuntu SMP Thu Mar 23 19:30:10 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

louk@oracle:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

louk@oracle:~$ cmk-agent-ctl
cmk-agent-ctl: command not found
MarsellusW commented 1 year ago

The package is the checkmk server package, not the agent...

chrisss404 commented 1 year ago

The package is the checkmk server package, not the agent...

True.

Furthermore, cmk-agent-ctl has no ARM support, see #52 and system requirements in the docs:

In rare cases, the following error message may appear:

bash: /usr/bin/cmk-agent-ctl: cannot execute binary file: Exec format error

The reason for this is that your Linux uses a different computer architecture than x86_64, for example the older 32-bit x86 or ARM. In this case, the Agent Controller cannot be used. Complete the setup as described in the article Monitoring Linux in legacy mode.

lorivaro commented 1 year ago

Cheers for the clarification. I seemed to have missed the part that explains the legacy mode.