Ubuntu 22.04に監視ツール「checkmk」をインストールする

環境
OSバージョンの確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

操作方法
1.下記サイトから最新盤checkmkをダウンロードします
https://checkmk.com/download/archive

checkmk2.1をダウンロードします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# wget https://download.checkmk.com/checkmk/2.1.0p14/check-mk-raw-2.1.0p14_0.jammy_amd64.deb
# wget https://download.checkmk.com/checkmk/2.1.0p14/check-mk-raw-2.1.0p14_0.jammy_amd64.deb
# wget https://download.checkmk.com/checkmk/2.1.0p14/check-mk-raw-2.1.0p14_0.jammy_amd64.deb

2.ダウンロードしたファイルをインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# ls -l check*
-rw-r--r-- 1 root root 159106924 1013 22:26 check-mk-raw-2.1.0p14_0.jammy_amd64.deb
# ls -l check* -rw-r--r-- 1 root root 159106924 10月 13 22:26 check-mk-raw-2.1.0p14_0.jammy_amd64.deb
# ls -l check*
-rw-r--r-- 1 root root 159106924 10月 13 22:26 check-mk-raw-2.1.0p14_0.jammy_amd64.deb

ダウンロードしたファイルをインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo apt install ./check-mk-raw-2.1.0p14_0.jammy_amd64.deb
# sudo apt install ./check-mk-raw-2.1.0p14_0.jammy_amd64.deb
# sudo apt install ./check-mk-raw-2.1.0p14_0.jammy_amd64.deb

3.インスタンスを生成します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo omd create monsvrs
# sudo omd create monsvrs
# sudo omd create monsvrs

出力結果

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# 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 nagios)...
Precompiling host checks...OK
Executing post-create script "01_create-sample-config.py"...OK
Restarting Apache...OK
Created new site monsvrs with version 2.1.0p14.cre.
The site can be started with omd start monsvrs.
The default web UI is available at http://ark-virtual-machine/monsvrs/
The admin user for the web applications is cmkadmin with password: Yup2lUVM
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'.
# 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 nagios)... Precompiling host checks...OK Executing post-create script "01_create-sample-config.py"...OK Restarting Apache...OK Created new site monsvrs with version 2.1.0p14.cre. The site can be started with omd start monsvrs. The default web UI is available at http://ark-virtual-machine/monsvrs/ The admin user for the web applications is cmkadmin with password: Yup2lUVM 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'.
# 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 nagios)...
Precompiling host checks...OK
Executing post-create script "01_create-sample-config.py"...OK
Restarting Apache...OK
Created new site monsvrs with version 2.1.0p14.cre.

  The site can be started with omd start monsvrs.
  The default web UI is available at http://ark-virtual-machine/monsvrs/

  The admin user for the web applications is cmkadmin with password: Yup2lUVM
  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'.

4.checkmkを起動します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo omd start monsvrs
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
# sudo omd start monsvrs 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
# sudo omd start monsvrs
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

5.管理画面にログインします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
http://ark-virtual-machine/monsvrs/
username: cmkadmin
password: Yup2lUVM
http://ark-virtual-machine/monsvrs/ username: cmkadmin password: Yup2lUVM
http://ark-virtual-machine/monsvrs/
username: cmkadmin
password: Yup2lUVM

 

Ubuntu 22.04

Posted by arkgame