services of Linux Hosts using the nrpe service, and installs the nrpe non-independent service on the remote monitored host,
The remote host's nrpe service then calls the check_nrpe plug-in to obtain host monitoring data, and then returns the data to the monitoring host through the service.
The monitoring host calls the check_nrpe plug-in to communicate with the
The previous "automated installation Nagios" completed the Nagios server-side installation, now need to configure the Nagios to achieve basic monitoring functions.
Experimental environment:
CentOS 6.3 x86_64, VirtualBox 4.1.14
Turn off firewalls and SELinux
Nagios version nagio
How to Set/etc/init. d/nagios checkconfig and/usr/local/nagios/bin/nagios, nagioscheckconfig
How to output the same results for/etc/init. d/nagios checkconfig and/usr/local/nagios/bin/nagios-v/usr/local/
The master-slave synchronization of Mysql and the LAMP environment were set up before the experiment, and then the nagios server was set up, and then configured on the slave side.
1. Add a user to the master database serverMysql> grant Replication client on *. * to 'nagios '@' % 'identified by 'nagios ';Mysql> flush privileges;
2. log on to the slave server and
-user=nagios--with-nagios-group=nagios make make install CD $path TAR-ZXVF Nrpe-2.12.ta
r.gz CD nrpe-2.12./configure make all make install make install-plugin make Install-daemon
Make Install-daemon-config make install-xinetd read-p ' please input the
{Host_name CentOSUse local-service, srv-pnpService_description CPU_loadCheck_period 24x7Max_check_attempts 4Normal_check_interval 1Retry_check_interval 1Contact_groups Linux-serversIcationication_interval 10Icationication_period 24x7Notification_options w, u, c, rCheck_command check_nrpe! Check_load}
// Services. cfg only two items are provided here, and the others can be added as needed.
Restart nagios and check whether there are any errors. If not,
Install and configure Nagios monitoring in Linux
Nagios installation Configuration:Nagios http://www.nagios.orgEnvironment setup:CentOS6.6 192.168.11.30 serves as the server.Centos6.6 192.168.11.100 as the client
1. Install Nagios-server (192.168.11.30)Centos6's default yum source does not contain the nagios-related rp
Monitoring Windows HostsNagios monitors Windows system hosts with three implementations: Snmp,nsclient++,nrpe, the next two ways to install the agent on Windows, this document only describes using the nsclient++ method to monitor WindowsInstalled and configured by the Monitoring machine Windows host plug-in:Http://nsclient.org/nscp/downloadsHere I use the 0.3.8.zip version, found that with the latest version of 0.3.9 in Windows Server2003 SP1 compatib
NagiosThe installation is relatively simple, and the complex is the setting of settings and configuration parameters. But you need to relax. After all, we need to fix it, right? Let's get started:
1: Get the latest installation package
:Http://www.nagios.org/download
2: log on to the server as root
The latest version is 2.5:
1) nagios, Version 2.5:
Fetch http://superb-west.dl.sourceforge.net/sourceforge/nagios
Because the Nagios source code installation process is more cumbersome, so the entire compilation of the installation process into a script to allow the system to automatically run, so as to reduce human intervention, improve efficiency.
Ideas from the "dl528888" blog, http://dl528888.blog.51cto.com/
Experimental environment: CentOS 6.3 x86_64, close firewall, SELinux set to Disabled
Installation package: nagio
1. Be sure to find the application side to confirm each node needs to monitor the process, do not blindly think all the Hadoop cluster of ZK, journal what are the same, remember!2. The monitored node only needs to install Nagios-plugin and Nrpe, depending on the need to install xinetd3. Verify that Nagios is not installed on the monitored node4. Identify trust be
Nagios IntroductionNagios is an open source monitoring application that can be used to monitor local and remote host logs, resources, dead and alive, and many more. Through the SNMP protocol and the Nrpe protocol.The Nagios profile is configured on nconf and then clicked on to the server, which has various templates that can be either self-matching or available.N
Let's take a lookNagiosClient ProgramInstallSituation:
Figure-nagios
The nrpe program is required to monitor the local information of the client.
The principle of NRPE is as follows:
NRPE consists of two parts:
-Check_nrpe plug-in, located on the monitoring host
-NRPE d
Server
Monitoring end
System Administrator (SA)
Apache, nagios, nagios plugin, sendmail, perl, etc.
Email server
Monitored end
System Administrator and email administrator
Nrpe, nagios plugin, custom scripts, etc.
Database Server
Monitored end
System Administrator, dba
If you use nagios to monitor mysql master and slave databases, you need to install the nrpe software package and the nagios software package on the monitoring host. The installation steps are not described.
If you use nagios to monitor mysql master and slave databases, you need to install the
above-l output index value. Flag to monitor the appropriate network cardReturn the result correctly:Ok-the traffic in are 356Kbps, out are 414Kbps, Total is 770Kbps. The Check Interval is 30s | In=356kbps;1200;1700;0;0 Out=414kbps;1500;1800;0;0 Total=770kbps;2700;3500;0;0 Interval=30s;1200;1800;0;0The IP in the client's SNMP profile and in the Nrpe file should be written to the client itself, not the server's IP, because
your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near ' Password ' = Password (' NA Gios ') where ' User ' = ' Nagios ' at line 1
mysql> update mysql.user Set Password = Password (' Nagios ') where user= ' Nagi Os ';
Query OK, 1 row affected (0.03 sec)
Rows matched:1 changed:1 warnings:0
mysql> flush Privileges;
Query OK,
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.