Nagios monitoring MySQL master-slave replication by Tian Yi (sery@163.com
)
Cause: Nagios may monitor the running status of the MySQL service, but it cannot monitor whether the master-slave replication of MySQL is normal: Sometime
Article Title: O M monitoring Nagios serialization 3: deploying and configuring the Nagios service. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Source: it168Author: Tian Yi (sery@163.com)
As the saying goes: to do good th
As the saying goes: to do good things, you must first sharpen your tools. to make system management easier and more effective, a good monitoring tool is essential. here, I recommend nagios, an open-source monitoring tool that has been used for more than four years and is powerful and customizable.
O M monitoring
/nagios.lockstatus_update_interval=102.2 Add the service to be monitored by the Listening node , for example:/usr/local/nagios/etc/objects/system_1.cfg# # define Hosts# system_1 Oam_1define host{ use linux-server,host-pnp host_name system_1_oam_1 address system_1_traffic_1 address System_1_admins,systems_admins # # define Services#system_1 oam_1Define
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.
resources and network services to monitor object status through Web pagesWhen the Nagios service is running, the plugins in the monitoring plug-in directory are automatically called to monitor the resources of the specified serverWhen invoking a plug-in, the administrator can configure, invoke the monitoring plug-in to monitor the value of the resource,There are
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 v
/templates.cfgThe Nagios configuration provides a template mechanism for extracting common configuration items into a template, and then inheriting them when defining actual objects. The default profile has a variety of templates defined, all in templates.cfg.The following configurations are modified on the basis of the default configuration, and some of the default templates are used. In addition, I nagios.cfg in the localhost.cfg to disable, because
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
>1Second, the official installation of NgiosNeed a lamp environment[Email protected] ~]# yum-y install gcc glibc glibc-common[Email protected] ~]# yum-y install GD gd-devel[Email protected] ~]# yum-y install Mysql-server[[email protected] ~]# yum-y install httpd php php-gdCreate the users and groups required on the Nagios server side[Email protected] ~]#/usr/sbin/useradd
Linux monitoring IDC MonitoringMonitored objects: servers (operation and maintenance jobs)What to monitor: (resources)1. Usage of hardware (CPU memory storage)2, monitoring the status of application services (running stop)3. Operation of operating system (number of users in process quantity system)4, network Interface data traffic (in and out)How to monitor?Execute a custom
then sends the results to the Nagios status queue.
Nagios reads the information in the queue, then displays the results.
Lab Environment:Build Nagios Monitoring System.创建nagios用户和用户组[[emailprotected] /]# mount /dev/cdrom /media/[[emailprotected] /]# useradd -s
install httpd mysql mysql-server php php-mysql-y first is to install lamp, here we use Yum To install lamp (these services, such as installation monitoring in the enterprise, typically use Yum to install lamp, except when building a Web service)You can download the appropriate version of
Article Title: O M monitoring serialization: A Powerful open-source monitoring tool nagios. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Source: it168
Author: Tian Yi (sery@163.com)
As the saying goes: to do good things, y
Building a monitoring system based on Nagios -- installing Nagios Core
Using Nagios to build the monitoring system of this department, I have only seen this guy's name several times before. This is a real start, and now I have successfully built a test environment, monitored
]# Vim/etc/exports/nfs * (rw) [[Email protected] objects] #/etc/init.d/nfs Restart verify Nfs[[email protected] objects]# showmount-e 192.168.31.101Export list for 192.168.31.101:/ NFS *Check if localhost is enabled properly, check the Nagios configuration file, or restart the Nagios service if error-free[Email protected] objects]#/usr/local/nagios/bin/
Nagios Monitoring System under Solaris
The article will introduce the installation process of Nagios in Solaris10, including the compilation and installation of source code; Apache installation, Nagios CGI configuration; Nagios monitori
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.