Build a monitoring server using Nagios
Chapter 4 using Nagios to build a Monitoring Server
【About Nagios]
Nagios is an open-source application software for monitoring systems and networks. It is deployed on a server-client. That is to say, you must first deploy the corresponding main suite on a server, then, deploy the
1. Principle of realization
A variety of servers in the network need to be managed and maintained, the administrator can not be in time for each of the status of the monitoring, it is necessary to use the function of the software to achieve. Nagios's function is to monitor the service and host, but he does not include this part of the function, all monitoring, detection functions are through a variety of plug-ins to complete. Start Nagios, it will pe
Nagios graphical interface is still a bit cumbersome, let's take MySQL for example. Monitoring MySQL plug-ins more, here to understand the method, rather than dead to move hard sets.
One, install Pnp4nagios
[Root@localhost objects]# yum install Pnp4nagios RRDtoolIf you can not find the replacement Epel source, blog inside a search. For Nagios installation, please refer to:
Nagios is an open-source free network monitoring tool that can effectively monitor the status of windows, Linux and UNIX hosts, network settings such as vswitches and routers, and printers. If the system or service status is abnormal, an email or text message alert will be sent immediately to the website O M personnel. After the status is restored, a normal email or text message notification will be sent. I am working on this stuff in our department
We mentioned how to install Nagiosinstallation. The client will introduce it later in the article. This article will introduce how to configure the server side of Nagiosinstallation.
We talked about how to install Nagios installation. The client will introduce it later in the article. This article will introduce how to configure the server side of Nagios.
Procedure1: Open the local. cfg file and configur
Monitor 80-Port 3306-Port passwd file changesExperiment Description: The environment is a host Linux CentOS release 6.5 (Final) 192.168.0.22 open httpd 80 port 3306 PortOne, prepare before starting the installation:1. Installing Nagios Server SoftwareA,nagios-3.5.1.tar.gzB,nagios-plugins-1.4.16.tar.gzC,nrpe-2.12.tar.gz2. Configure Environment variables:[Email pro
Implementation of Nagios: Nagios adopts distributed-centralized management mode. Install the main Nagios program on the Nagios server,
Install the Nagios agent on the monitored host. Monitors the host status through communication between the main
monitoring configuration-configuration of notifications
Notify by email when there is a problem with the service
1, configure the command to send mail
Edit/usr/local/nagios/etc/objects/commands.cfg
The default output macros $hostoutput$ and $serviceoutput$ only output the first line of information, and we use $longhostoutput$ and $longserviceoutput$ to output the complete information.
in order to accept the format of a good, and Chinese text-free hyp
Configuring Nagios Monitoring System filesNagios configuration file:Nagios.cfg: Master profile, defining the name and location of various configuration filesCGI.CFG: Controlling the CGI configuration fileResource.cfg: Resource file, define various variables so that other files can be calledObjects: Other configuration file directory, this directory is mainly:COMMAND.CFG: Command configuration file, define various command formats for other file callsCo
Install and compile the Nagios document quickly in CentOS 6.5
Install and compile the Nagios documentation-all virtual environments in CentOS 6.5.
The purpose of writing this document is to facilitate and quickly deploy Nagios, which involves configurations that you like. You can modify and apply the configurations on your own.
Network Monitor
It is a complicated process to build nagios, first of all it requires the reader to have a Linux foundation, the most important thing is to spend a lot of energy and time, there is patience and careful. I mainly refer to this article on the Internet, I think the writing is very good.Original:Http://www.cnblogs.com/mchina/archive/2013/02/20/2883404.htmlhttp://www.ibm.com/developerworks/cn/linux/1309_luojun_nagios/I. About Nagios650) this.width=650; "ti
Values :Check , notif or misc
Command Line
System command line that'll be run on execution
②.Increase inNagioscommand, usingADDAction:Format:
Centreon-u User name -P password -o cmd-a add-v ' command name ; type ; Command '
Note: When you define a command directly, you need to use the single quote " ' ", a variable should be included in the command" $... ". 1), execute the command:
[Email protected] ~]# centreon-uadm
Nagios+centreon of Chinese ①.Download language Files : wget Http://cacti-nagios.googlecode.com/files/messages.mo ②.Create a language directory : mkdir-p/usr/local/centreon/www/locale/zh_cn/lc_messages/ ③. move the downloaded messages.mo to the directory created in step 2 : MV messages.mo/usr/local/centreon/www/locale/zh_cn/lc_messages/ ④. Log in to Centreon, click administartors, and then click Optionto go to "my account" and change the language t
System environment:[Email protected]_server ~]# cat/etc/redhat-releaseCentOS Release 6.9 (Final)1. Update the Yum sourceMv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.backupWget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-6.repo2. Adjusting the character setecho ' Export lc_all=c ' >>/etc/profileSource/etc/profile3. Close Iptables and SELinux4. Update the system time/usr/sbin/ntpdate pool.ntp.orgThen put in a timed task5. Installing GCC and lamp
Monitoring targetMonitoring target host is divided into four partsHardware ResourcesOperating systemDatabaseApplication softwareMonitoring purpose:Before server performance tuning, know what to adjust and where the system bottleneck ismust be monitored at the same time, including throughput, reaction time, utilization, etc.Monitoring command:Process monitoringPsTopStorage monitoringFreeSwapon-sDf-hNetwork MonitoringIfconfigNetstatPingTraceroutePerformance monitoringCommon Performance Monitoring
Nagios is an application for system and network monitoring. It monitors hosts and services under the conditions you set
Control, and notify the administrator when the monitored object is alerted and restored based on the alarm threshold value and alarm method set by the administrator.
The following describes how to install Nagios.
Before installing Nagios, yo
1. NRPE introduction NRPE is a function extension of Nagios. it can execute plug-in programs on a remote LinuxUnix host. By installing the NRPE plug-in and Nagios plug-in on a remote server, you can provide the Nagios monitoring platform with local information about the server, such as CPU load and memory usage,
1. Introduction to NRPE
NRPE is a function extensio
The purpose of writing this document is to facilitate the deployment of Nagios, related to the configuration of personal preferences, we modify, can be applied.First, download and install the required software1,yum install gcc mysql httpd php gd OpenSSL openssl-devel mysql-server vim wgetWget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.7.tar.
1. Experimental environment:Host Name: The software environment required by IPNagios-server 192.168.124.143 Apache, Php, Nagios, Nagios-plugins, NrpeNagios-linux 192.168.124.203 Nagios-plugins, NrpeNagios software is required on the monitor nagios-server to handle the monitored data and to provide a web interface for v
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.