1.1.1YumSource Preparation
prepare the CentOS7YUM Source:
Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-7.repo
Replace all $releasever inside with 7
650) this.width=650, "width=" 553 "height=", src= "/e/u261/themes/default/images/spacer.gif" style= "Background:url" ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
prepare Epel yum source
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
# RPM-IVH epel-release-7-5.noarch.rpm
650) this.width=650; "Width=" 554 "height=" 183 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
Yum Clean all && yum repolist
Yum Install Net-tools
Epel sources for other systems :
rpm-ivhhttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
1.1.2Firewall
#systemctlstop firewalld.service && systemctl disable firewalld.service&& setenforce 0 && Getenforce
1.1.3DownloadRpminstallation
Note: If you need to put the installed things under the /apps/svr/ :
# MKDIR/APPS/SVR/OMD
# LN-S/APPS/SVR/OMD/OPT/OMD
corresponding OS version of OMD download http://files.omdistro.org/releases/centos_rhel/
Yuminstall--nogpgcheck omd-1.20.rhel7.x86_64.rpm # If there are many dependencies, it proves that there is a problem with the Yum Source configuration and does not require a Rely on manual installation of
[Email protected]]# which OMD
/usr/bin/omd
650) this.width=650; "Width=" 554 "height=" 198 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
[[Email protected]~] #omdcreate gzhlgz # build Site
[[Email protected]~] #su - gzhlgz # switch to site user (along with Shell Environment)
Last Login:thu Jan 7 02:56:45 EST. On PTS/1
omd[gzhlgz]:~ $omd start # start the site
Starting rrdcached ... Ok
Starting NPCD ... Ok
Starting Nagios ... Ok
Starting dedicatedapache for site Gzhlgz ... Ok
Initializingcrontab ... Ok
after the site is built and started, you can access the following addresses: (when the site name is prod )
Access IP: port, default password omadmin:omd login
650) this.width=650; "Width=" 554 "height=" "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
1.2 Client Installation1.2.1Reference Documents
http://www.zouliblog.cn/?p=103 (Nagios based on OMD- basic configuration)
1.2.2installationAgent(Yuminstallation)
# Note Check the version and service side of the same, otherwise the disk capacity and other checks do not come out!
Yumremove $ (Rpm-qa | grep check-mk-agent) # If you have an older version, uninstall
need to have Epel Yum Source ( on 6 words, need to change inside, remove baseurl front of #, add # before Mirror)
# RPM-UVH http://dl.fedoraproject.org/pub/epel/6Server/x86_64/epel-release-6-8.noarch.rpm
Yuminstall xinetd # before installing, check to see if the xinetd service Note version is installed! Corresponds to server side
rpm-uvhhttp://mathias-kettner.de/download/check_mk-agent-1.2.4p5-1.noarch.rpm
1.2.3Configuration Modifications
Modifying a configuration file
# Cp-r/etc/xinetd.d{,.bak} && cd/etc/xinetd.d && rm *-F && cp /etc/xinetd.d.bak/check-m k-*.
# LS/ETC/XINETD.D
Check-mk-agent check-mk-caching-agent
# cat/etc/xinetd.d/check-mk-agent |grep Only_from # fill in the Omdserver address, restrict the fixed server to manage
Only_from = 127.0.0.1 10.0.20.1 10.0.20.2
1.2.4StartAgent
#systemctlstart Xinetd.service
# cat/etc/xinetd.d/check-mk-agent |grep Port # to see which port to listen on
#netstat-ltn |grep 6556 # OK port is open
TCP6 0 0::: 6556:::* LISTEN
Remember to manually perform a refresh on the main menu every time you add it, the monitored machines and services will take effect.
then you can Adding a native IP to the WEB UI for monitoring
This article from "Shore Zhi scholar" blog, please be sure to keep this source http://anzhishuxiang.blog.51cto.com/8163277/1739975
OMD installation (check_mk+nagios+ ...)