{"id":500,"date":"2019-09-25T08:49:00","date_gmt":"2019-09-25T07:49:00","guid":{"rendered":"https:\/\/www.shakral.de\/blog\/?p=500"},"modified":"2019-09-25T08:49:00","modified_gmt":"2019-09-25T07:49:00","slug":"check-mk-installation-unter-centos-7-7","status":"publish","type":"post","link":"https:\/\/www.shakral.de\/blog\/2019\/09\/25\/check-mk-installation-unter-centos-7-7\/","title":{"rendered":"Check MK &#8211; Installation unter CentOS 7.7"},"content":{"rendered":"<p>Installation des Linux-Betriebssystems CentOS<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Auflisten der fehlenden Abh\u00e4ngigkeiten:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\n&#x5B;root@check-mk Downloads]# rpm -i check-mk-raw-1.5.0p22-el7-38.x86_64.rpm \nFehler: Fehlgeschlagende Abh\u00e4ngigkeiten:\n\tdialog wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tfping wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tgraphviz wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tgraphviz-gd wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\thttpd wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tlibdbi wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tperl-Net-SNMP wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tperl-Locale-Maketext-Simple wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tperl-IO-Zlib wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tphp wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tphp-cli wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tphp-xml wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tphp-mbstring wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tphp-pdo wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tphp-gd wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tuuid wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\txinetd wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\tfreeradius-utils wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n\trpm-build wird ben\u00f6tigt von check-mk-raw-1.5.0p22-el7-38.x86_64\n<\/pre><\/div>\n\n\n<p>Diese Pakete k\u00f6nnen \u00fcber den CentOS-Paketmanager nachinstalliert werden:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>yum install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm<\/li><li>yum install php xinetd uuid php-gd php-xml libdbi dialog graphviz graphviz-gd freeradius-utils php-pdo rpm-build php-mbstring perl-IO-Zlib perl-locale-maketext-simpe perl-Net-SNMP<\/li><\/ul>\n\n\n\n<p>Die eigentliche Installation des Check-MK Pakets ist im anschluss ohne weitere Probleme m\u00f6glich<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\n&#x5B;root@check-mk Downloads]# rpm -i check-mk-raw-1.5.0p22-el7-38.x86_64.rpm \nNew default version is 1.5.0p22.cre.\nInstalling systemd service: omd.init\nActivating startup during system boot\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/omd.service to \/etc\/systemd\/system\/omd.service.\n&#x5B;root@check-mk Downloads]# \n<\/pre><\/div>\n\n\n<p>Nach der Installation erstellen wir uns eine neue Instanz<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [3]; title: ; notranslate\" title=\"\">\n&#x5B;root@check-mk Downloads]# omd version\nOMD - Open Monitoring Distribution Version 1.5.0p22.cre\n&#x5B;root@check-mk Downloads]# omd create HGS11\nAdding \/opt\/omd\/sites\/HGS11\/tmp to \/etc\/fstab.\nCreating temporary filesystem \/omd\/sites\/HGS11\/tmp...OK\nRestarting Apache...OK\nCreated new site HGS11 with version 1.5.0p22.cre.\n\n  The site can be started with omd start HGS11.\n  The default web UI is available at http:\/\/check-mk.hgs11\/HGS11\/\n\n  The admin user for the web applications is cmkadmin with password: DdFDNiLK\n  (It can be changed with &#039;htpasswd -m ~\/etc\/htpasswd cmkadmin&#039; as site user.\n)\n  Please do a su - HGS11 for administration of this site.\n\n&#x5B;root@check-mk Downloads]# \n\n<\/pre><\/div>\n\n\n<p>Zum Abschluss der Grundinstallation welchseln wir in die angelegte Instanz und starten die entsprechenden Dienste:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1,3,13]; title: ; notranslate\" title=\"\">\n&#x5B;root@check-mk Downloads]# su - HGS11\nLetzte Anmeldung: Dienstag, den 24. September 2019, 00:49:38 CEST auf pts\/0\nOMD&#x5B;HGS11]:~$ omd start\nOK\nStarting mkeventd...OK\nStarting rrdcached...OK\nStarting npcd...OK\nStarting nagios...2019-09-24 09:48:46 &#x5B;6] updating log file index\n2019-09-24 09:48:46 &#x5B;6] updating log file index\nOK\nStarting apache...OK\nInitializing Crontab...OK\nOMD&#x5B;HGS11]:~$ omd status\nmkeventd:       running\nrrdcached:      running\nnpcd:           running\nnagios:         running\napache:         running\ncrontab:        running\n-----------------------\nOverall state:  running\n<\/pre><\/div>\n\n\n<p>Um die Webseite auch von auserhalb des localhosts erreichbar zu machen, muss der 5000er-Port f\u00fcr das Webinterface noch in der CentOS-Firewall frei gegeben werden:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfirewall-cmd --zone=public --add-port=5000\/tcp --permanent\nfirewall-cmd --reload\n<\/pre><\/div>\n\n\n<p>Jetzt ist das Webinterface erreichbar<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"635\" height=\"422\" src=\"https:\/\/www.shakral.de\/blog\/wp-content\/uploads\/2019\/09\/2019-09-24-10_08_18-Check_MK-Multisite-Login.png\" alt=\"\" class=\"wp-image-504\" srcset=\"https:\/\/www.shakral.de\/blog\/wp-content\/uploads\/2019\/09\/2019-09-24-10_08_18-Check_MK-Multisite-Login.png 635w, https:\/\/www.shakral.de\/blog\/wp-content\/uploads\/2019\/09\/2019-09-24-10_08_18-Check_MK-Multisite-Login-300x199.png 300w\" sizes=\"auto, (max-width: 635px) 100vw, 635px\" \/><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>Installation des Linux-Betriebssystems CentOS<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[82,86,89,84,85,87,88],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-centos","tag-checkmk","tag-installation","tag-linux","tag-monitoring","tag-rpm","tag-yum"],"_links":{"self":[{"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":5,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":506,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/posts\/500\/revisions\/506"}],"wp:attachment":[{"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shakral.de\/blog\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}