variety of plug-ins to complete.
Start Nagios, it will periodically automatically invoke the plug-in to detect the server state, while Nagios will maintain a queue, all plug-ins returned to the status of information are entered the queue, Nagios each time from the beginning of the team to read information, and processing, the status results through the Web disp
alarm part of the code, not even plug-ins, but to the user or other relevant open source project team to complete. Nagios installation, refers to the basic platform, that is, Nagios software package installation. It is the framework of the monitoring system and the basis of all monitoring.
Open
servers. Environment: install Centos according to this guide. the installation directory is as follows: installing Nagios and plug-ins to/usr/local/nagios will be configured as the Web interface for monitoring several main services (such as CPU load and disk utilization) of the local system: http://localhost/
1. PrefaceFor System Workers, monitoring various running statuses of servers is one of the tasks. for a small number of servers, manual observation is not a problem, but it is too troublesome for Server clusters, as a result, many people have adopted some automation tools, such as scripts, but today we are introducing a very famous open-source project Nagios.Nagios is just a monitoring platform. All monitoring tasks are completed by plug-ins, with a high degree of customization and good configur
The Nagios-plugins plugin is based on the installation of Nagios core, and the installation details of Nagios core are as follows: [Nagios monitor Nagios Core
The company needs to build a monitoring platform in the near future, the main purpose is to realize the Server service or load abnormal timely alarm function, after the choice finally decided to use Nagios implementationInstall Nagios Core
The code is as follows
Copy Code
Yum-y install gcc glibc glibc-common gd gd-devel php openssl-devel httpdUseradd-m
.===========================================================Installing Nrpe on the clientNrpe needs to install Nagios Plugins First, and if MySQL is involved, it requires a pre-installation of MySQL Mysql-develTurn off SELinux and do not repeat the method.Add Nagios Users/usr/sbin/useradd Nagiospasswd NagiosDownload Nagios
Rotten mud: Learning Nagios (3): NRPE installation and configuration, nagiosnrip
This document consistsXiuyi Lin FengProviding friendship sponsorship, first launchedThe world
In the first two articles, we introduced the installation and configuration of nagios. The articles are "mud: Learning
that/etc/services has the nrpe 5666/tcp # NRPE line. If not, add
Restart the xinetd service and the monitoring end has completed configuration.
/Usr/local/nagios/libexec/check_nrpe-H address of the monitored end
If "NRPE v2.12" is displayed, it indicates that NRPE can communicate with the monitored end normally.
After the installation is complete, start the configuration. See
Network Monitor
, all plug-in return status information goes into the queue, and Nagios reads the information from the first team and displays the status through the Web.Nagios provides a number of plug-ins that enable you to monitor service status. After the installation is complete, the Nagios home directory is/libexec with all the plugins, such as Check_disk check the disk sp
Nagios before installation, Nagios needs PHP support after 3.1.x, so it is necessary to install PHP and HTTP-related support here.
First, create Nagios users and Groups
[Root@test2 ~]# useradd-s/sbin/nologin Nagios[Root@test2 ~]# Mkdir/usr/local/
states of a monitored object. Nagios passes the thresholds for warting and crtical to the plug-in and is responsible for monitoring and analyzing the results of a specific object by the plug-in, with output information such as status information (Ok,warning,critical or Unkown) and additional detailed information.Second, the environmentSystem: CentOS 6.4x64 Minimized installationnagios-server:192.168.3.71nagios-client:192.168.3.72Iii.
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 eithe
Httpd_sys_content_t/usr/local/nagios/sbin# chcon-r-T Httpd_sys_content_t/usr/local/nagios/shareAt this point, Nagios's installation is complete and can be accessed via the Web Http://ip/nagiosMonitoring remote Linux hosts based on NrpeNrpe is used to run the daemon of monitoring command on the remote server, it is used for the
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.gz
to the actual requirements.Nagios Core: It basically does not do any monitoring work, all the monitoring functions are completed by plugins.Iii. working principle of NagiosNagios's function is to monitor the service and host, but he does not include this part of the function, all the monitoring, detection functions are through a variety of plug-ins to complete.After you start Nagios, it periodically automatically calls the plug-in to detect the serve
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.