Ubuntu 21.10に監視ツールcheckmkをインストール
1.OSバージョンを確認
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=21.10 DISTRIB_CODENAME=impish DISTRIB_DESCRIPTION="Ubuntu 21.10"
checkmk 2.0.0p16のダウンロード
# wget https://download.checkmk.com/checkmk/2.0.0p16/check-mk-free-2.0.0p16_0.impish_amd64.deb
2.checkmkのインストール
# sudo apt install ./check-mk-free-2.0.0p16_0.impish_amd64.deb 略 php8.0-cli (8.0.8-1ubuntu0.1) のトリガを処理しています ... php8.0-phpdbg (8.0.8-1ubuntu0.1) のトリガを処理しています ... php8.0-cgi (8.0.8-1ubuntu0.1) のトリガを処理しています ...
3.checkmkインスタンスを生成します
# sudo omd create monsvrs Adding /opt/omd/sites/monsvrs/tmp to /etc/fstab. Creating temporary filesystem /omd/sites/monsvrs/tmp...OK Updating core configuration... Generating configuration for core (type cmc)...Creating helper config...OK OK Executing post-create script "01_create-sample-config.py"...OK Restarting Apache...OK Created new site monsvrs with version 2.0.0p16.cfe. The site can be started with omd start monsvrs. The default web UI is available at http://ubuntu/monsvrs/ The admin user for the web applications is cmkadmin with password: jrwD2lDO For command line administration of the site, log in with 'omd su monsvrs'. After logging in, you can change the password for cmkadmin with 'htpasswd etc/htpasswd cmkadmin'.
ユーザー名:cmkadmin
パスワード:jrwD2lDO
4.checkmkを起動します
# sudo omd start monsvrs Temporary filesystem already mounted Starting mkeventd...OK Starting liveproxyd...OK Starting mknotifyd...OK Starting rrdcached...OK Starting cmc...OK Starting apache...OK Starting dcd...OK Starting redis...OK Initializing Crontab...OK
5.動作確認
ブラウザから http://192.168.71.139/monsvrsでアクセスします。
ユーザー名:cmkadmin
パスワード:jrwD2lDO