chrisss404 / check-mk-arm

Checkmk for Raspberry Pi.
182 stars 23 forks source link

checkmk auf Oracle Cloud Arm #53

Closed mathschut closed 1 year ago

mathschut commented 1 year ago

Hi, ist es möglich das CheckMK von dir auch unter Ubuntu ARM in der Oracle Free Cloud Infra laufen zu lassen oder geht das nur unter Raspi Arm?

chrisss404 commented 1 year ago

Yes, should work. Just tried the basic installation using Canonical-Ubuntu-22.04-aarch64-2022.08.10-0:

ubuntu@instance-20221101-1500:~$ uname -a
Linux instance-20221101-1500 5.15.0-1016-oracle #20-Ubuntu SMP Mon Aug 8 07:08:08 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

ubuntu@instance-20221101-1500:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

ubuntu@instance-20221101-1500:~$ curl -LO $(curl -s https://api.github.com/repos/chrisss404/check-mk-arm/releases/tags/2.1.0p15 | grep browser_download_url | cut -d '"' -f 4 | grep jammy_arm64.deb)

ubuntu@instance-20221101-1500:~$ sudo dpkg -i check-mk-raw-*.jammy_arm64.deb
Selecting previously unselected package check-mk-raw-2.1.0p15.
(Reading database ... 65593 files and directories currently installed.)
Preparing to unpack check-mk-raw-2.1.0p15_0.jammy_arm64.deb ...
Unpacking check-mk-raw-2.1.0p15 (0.jammy) ...
dpkg: dependency problems prevent configuration of check-mk-raw-2.1.0p15:
 check-mk-raw-2.1.0p15 depends on traceroute; however:
  Package traceroute is not installed.
...
 check-mk-raw-2.1.0p15 depends on libpq5; however:
  Package libpq5 is not installed.

dpkg: error processing package check-mk-raw-2.1.0p15 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 check-mk-raw-2.1.0p15

ubuntu@instance-20221101-1500:~$ sudo apt-get update

ubuntu@instance-20221101-1500:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  apache2 ...
Suggested packages:
  apache2-doc ...
The following NEW packages will be installed:
  apache2 ...
The following packages will be upgraded:
  gcc-12-base libgcc-s1 libstdc++6
3 upgraded, 124 newly installed, 0 to remove and 90 not upgraded.
1 not fully installed or removed.
Need to get 36.5 MB of archives.
After this operation, 148 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

ubuntu@instance-20221101-1500:~$ sudo omd create status
Adding /opt/omd/sites/status/tmp to /etc/fstab.
Creating temporary filesystem /omd/sites/status/tmp...OK
Updating core configuration...
Generating configuration for core (type nagios)...
Precompiling host checks...OK
Executing post-create script "01_create-sample-config.py"...OK
Restarting Apache...OK
Created new site status with version 2.1.0p15.cre.

  The site can be started with omd start status.
  The default web UI is available at http://instance-20221101-1500/status/

  The admin user for the web applications is cmkadmin with password: FBTIEZtl
  For command line administration of the site, log in with 'omd su status'.
  After logging in, you can change the password for cmkadmin with 'htpasswd -B -C 12 etc/htpasswd cmkadmin'.

ubuntu@instance-20221101-1500:~$ sudo omd start status
Temporary filesystem already mounted
Starting agent-receiver...OK
Starting mkeventd...OK
Starting rrdcached...OK
Starting npcd...OK
Starting nagios...OK
Starting apache...OK
Starting redis...OK
Initializing Crontab...OK

In case you have issues accessing the checkmk web interface, the following may help: https://blog.meinside.dev/When-Oracle-Clouds-Ubuntu-Instance-Doesnt-Accept-Connections-to-Ports-Other-than-22/

oracle-cloud

mathschut commented 1 year ago

Hi, danke für die Infos. Es läuft alles super, danke dir.