1. OMD installation (check mk+nagios+ ...), version: RHEL7+OMD1.2.4P5

Source: Internet
Author: User
Tags check mk yum repolist

OMD Overview (Monitoring software)

Overview: This is a lightweight monitoring, integrated with Nagios,check MK and other software, can easily switch interface, its deployment, management is relatively simple. Download RPM package installed, after simple configuration, there are many default monitoring items, the interface is as follows: (you can also switch to the Nagios interface)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/8C/wKiom1ariwfzHkzSAANsHxI4AVQ055.png "title=" OMD installed , check MK interface "alt=" Wkiom1ariwfzhkzsaanshxi4avq055.png "/>

OMD installation Steps (divided into server and client)

First, server-side:

    1. Prepare Epel and local yum sources

    2. Shutting down the firewall

    3. Download RPM Package

    4. Installation

Second, the client:

    1. Prepare local Yum Source

    2. Installing the XINETD Program

    3. Download and install the client package that corresponds to the server version

    4. Modify configuration and restart

1.1  Client InstallationYumSource Preparation

prepare the CentOS7 YUM Source:

Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-7.repo

Replace all $releasever inside with 7

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


Yum Clean all && yum repolist

Yum Install Net-tools

1.1.2Firewall (prevent it from disabling ports)

#systemctlstop firewalld.service && systemctl disable firewalld.service&& setenforce 0 && Getenforce

1.1.3DownloadRpminstallation

corresponding OS version of OMD download http://files.omdistro.org/releases/centos_rhel/

Yuminstall--nogpgcheck omd-1.20.rhel7.x86_64.rpm # If there is a lot of dependencies, it proves that there is a problem with the Yum source configuration. No need to rely on manual installation

[Email protected]]# which OMD

/usr/bin/omd

[[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 Rrdcach Ed ... OK

Starting NPCD ... Ok

Starting Nagios ... Ok

Starting dedicatedapache for site Gzhlgz ... Ok

Initializingcrontab ... Ok

Once the site is built and started, it can be accessed on HTTP://<MY_IP>/OMD and multiple portals can be selected.

Access IP: Default port, default password omadmin:omd login

1.2  Client Installation1.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

# 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/1739994

1. OMD installation (check mk+nagios+ ...), version: RHEL7+OMD1.2.4P5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.