This article refers to the http://wangzan18.blog.51cto.com/8021085/1628984http://linuxnote.blog.51cto.com/9876511/1637773First, Nagios overviewNagios is a plug-in structure, it does not have any monitoring function, all the monitoring is through the plug-in, so it is highly modular and flexible. Nagios monitors objects into two categories: Hosts and services. Hosts typically refer to physical hosts, such as
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
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
Nagios.cfg file Nagios.cfg
The default path is/usr/local/nagios/etc/ Nagios.cfg, is the Nagios core configuration file, all object configuration files must be defined in this file to play its role, where the object configuration file can only be referenced in the Nagios.cfg file.
Log_file=/usr/local/nagios/var/nagios.log
The "log_file" variable is used to defi
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
based on the understanding of Nagios and Nagiosql, the author briefly combs the relationship between the two, as shown in the following: As you can see from the diagram above, Nagios and Nagiosql share hosts, host groups, services, service groups, and so on. CFG configuration files, while in Nagiosql, you can freely control the start and stop of nagios
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
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
Monitoring is very important for the daily operation of the System Manager, and the more well-known open-source monitoring software has ganglia, Cacti, Nagios, Zabbix, and so on, and this time simply said Nagios installation deployment, Because Nagios is managed based on Web page view, it can be implemented using either lamp or LNMP, the more easily implemented W
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
Method One
First, MySQL from the server settings
1, MySQL from the Server users add
The code is as follows
Copy Code
Add users by executing the following statement:Mysql> GRANT REPLICATION CLIENT on *.* to Monitor@localhost identified by ' PassWord ';2. Download check-mysql-slave.pl Scriptcd/usr/local/bin/wget http://www.centos.bz/wp-content/uploads/2012/10/check-mysql-slave.plchmod +x check-mysql-slave.pl3, in MySQL from the server configuration extend Mysql-slave
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.
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.